Auto-sync 2026-04-15 22:35
This commit is contained in:
parent
76924ef4e2
commit
c4aca0cedd
@ -34,7 +34,7 @@ local function HideHint()
|
||||
end
|
||||
|
||||
local function Notify(msg, type)
|
||||
exports['hex_4_hud']:SendNotification(msg, type or "info")
|
||||
exports['hex_4_hud']:Notify("Fahrrad", msg, type or "info", 3000)
|
||||
end
|
||||
|
||||
-- ── NPC spawnen ────────────────────────────────────────────────
|
||||
|
||||
@ -40,10 +40,10 @@ Config.Notify = {
|
||||
|
||||
-- ─── Interne Hilfsfunktionen ────────────────────────────────────
|
||||
|
||||
function Config.ClientNotification(msg, type)
|
||||
exports['hex_4_hud']:SendNotification(msg, type or "info")
|
||||
function Config.ClientNotification(msg, ntype)
|
||||
exports['hex_4_hud']:Notify("Fahrrad", msg, ntype or "info", 3000)
|
||||
end
|
||||
|
||||
function Config.ServerNotification(src, msg, type)
|
||||
TriggerClientEvent('mercyv-bike:notify', src, msg, type or "info")
|
||||
function Config.ServerNotification(src, msg, ntype)
|
||||
TriggerClientEvent("hex_4_hud:Notify", src, "Fahrrad", msg, ntype or "info", 3000)
|
||||
end
|
||||
|
||||
@ -3,7 +3,196 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>MercyV Bike</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<style>
|
||||
/* ═══════════════════════════════════════════════════
|
||||
MercyV Bike – NUI Style (gleiche Sprache wie mercyv-garage)
|
||||
═══════════════════════════════════════════════════ */
|
||||
|
||||
:root {
|
||||
--accent: #E8830A;
|
||||
--accent-hover: #F59D2A;
|
||||
--bg-modal: rgba(18, 18, 22, 0.96);
|
||||
--bg-card: rgba(30, 30, 36, 0.9);
|
||||
--bg-input: rgba(255,255,255,0.05);
|
||||
--border: rgba(255,255,255,0.08);
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: rgba(255,255,255,0.75);
|
||||
--text-muted: rgba(255,255,255,0.35);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#app { position: fixed; inset: 0; pointer-events: none; }
|
||||
|
||||
/* ── Backdrops ─────────────────────────────────── */
|
||||
.mb-backdrop {
|
||||
position: fixed; inset: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
pointer-events: all;
|
||||
}
|
||||
.mb-backdrop-transparent {
|
||||
position: fixed; inset: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
/* ── Modal ─────────────────────────────────────── */
|
||||
.mb-modal {
|
||||
width: 820px;
|
||||
background: var(--bg-modal);
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
box-shadow: 0 8px 40px rgba(0,0,0,0.7);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.mb-modal-admin { width: 520px; }
|
||||
|
||||
/* ── Header ────────────────────────────────────── */
|
||||
.mb-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
.mb-header-left { display: flex; align-items: center; gap: 10px; }
|
||||
.mb-header-right { display: flex; align-items: center; gap: 8px; }
|
||||
.mb-header-icon {
|
||||
width: 36px; height: 36px; border-radius: 8px;
|
||||
background: rgba(232,131,10,0.15);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.mb-title-main { font-size: 18px; font-family: inherit; font-weight: 700; display: block; }
|
||||
.mb-title-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; }
|
||||
|
||||
.mb-close-btn {
|
||||
width: 28px; height: 28px; border-radius: 6px;
|
||||
background: rgba(255,255,255,0.07); border: none;
|
||||
color: var(--text-muted); cursor: pointer; font-size: 12px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.mb-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
|
||||
|
||||
/* ── Body ──────────────────────────────────────── */
|
||||
.mb-body {
|
||||
padding: 24px 20px;
|
||||
display: flex; flex-direction: column; gap: 16px; align-items: center;
|
||||
}
|
||||
|
||||
/* ── Bereits abgeholt ──────────────────────────── */
|
||||
.mb-claimed-notice {
|
||||
display: flex; flex-direction: column; align-items: center; gap: 8px;
|
||||
padding: 24px; text-align: center;
|
||||
color: var(--accent);
|
||||
}
|
||||
.mb-claimed-notice i { font-size: 40px; margin-bottom: 4px; }
|
||||
.mb-claimed-notice span { font-size: 15px; color: var(--text-secondary); }
|
||||
.mb-claimed-model { font-size: 13px; color: var(--text-muted); }
|
||||
|
||||
/* ── Fahrrad-Karten ────────────────────────────── */
|
||||
.mb-bikes {
|
||||
display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
|
||||
}
|
||||
.mb-bike-card {
|
||||
width: 210px; padding: 20px 16px;
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
display: flex; flex-direction: column; align-items: center; gap: 8px;
|
||||
transition: border-color 0.2s, transform 0.1s;
|
||||
}
|
||||
.mb-bike-card:hover { border-color: rgba(232,131,10,0.4); transform: translateY(-2px); }
|
||||
.mb-bike-active { border-color: var(--accent) !important; background: rgba(232,131,10,0.08) !important; }
|
||||
.mb-bike-img { width: 160px; height: 100px; object-fit: contain; }
|
||||
.mb-bike-name { font-size: 13px; font-family: inherit; font-weight: 700; text-align: center; }
|
||||
.mb-bike-free { font-size: 13px; color: var(--accent); }
|
||||
.mb-bike-free i { margin-right: 4px; }
|
||||
|
||||
/* ── Claim-Button ──────────────────────────────── */
|
||||
.mb-claim-btn {
|
||||
padding: 15px 40px;
|
||||
background: var(--accent); border: none; border-radius: 8px;
|
||||
color: #fff; font-size: 15px; font-family: inherit; font-weight: 700;
|
||||
cursor: pointer; letter-spacing: 0.04em;
|
||||
transition: background 0.15s, transform 0.1s;
|
||||
}
|
||||
.mb-claim-btn:hover { background: var(--accent-hover); }
|
||||
.mb-claim-btn:active { transform: scale(0.98); }
|
||||
|
||||
/* ── Admin-Link ────────────────────────────────── */
|
||||
.mb-admin-link {
|
||||
padding: 8px 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 12px; color: var(--text-muted);
|
||||
cursor: pointer; display: flex; align-items: center; gap: 6px;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.mb-admin-link:hover { color: var(--accent); }
|
||||
|
||||
/* ── Admin Panel ───────────────────────────────── */
|
||||
.mb-admin-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
|
||||
.mb-form-section { display: flex; flex-direction: column; gap: 8px; }
|
||||
.mb-form-label {
|
||||
font-size: 13px; color: var(--text-secondary);
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.mb-form-label i { color: var(--accent); }
|
||||
.mb-input {
|
||||
padding: 9px 12px;
|
||||
background: var(--bg-input); border: 1px solid var(--border);
|
||||
border-radius: 8px; color: var(--text-secondary);
|
||||
font-size: 13px; font-family: inherit; outline: none;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.mb-input:focus { border-color: var(--accent); }
|
||||
.mb-input-sm { flex: 1; min-width: 0; }
|
||||
.mb-pos-row { display: flex; gap: 8px; }
|
||||
|
||||
.mb-capture-btn {
|
||||
padding: 9px 14px; border-radius: 8px;
|
||||
background: rgba(232,131,10,0.15);
|
||||
border: 1px solid rgba(232,131,10,0.3);
|
||||
color: var(--accent); font-size: 13px;
|
||||
font-family: inherit; cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.mb-capture-btn:hover { background: rgba(232,131,10,0.25); }
|
||||
|
||||
.mb-save-btn {
|
||||
padding: 12px; border-radius: 8px;
|
||||
background: var(--accent); border: none;
|
||||
color: #fff; font-size: 14px; font-family: inherit; font-weight: 700;
|
||||
cursor: pointer; letter-spacing: 0.04em;
|
||||
transition: background 0.15s, transform 0.1s;
|
||||
}
|
||||
.mb-save-btn:hover { background: var(--accent-hover); }
|
||||
.mb-save-btn:active { transform: scale(0.98); }
|
||||
|
||||
.mb-admin-hint {
|
||||
display: flex; align-items: flex-start; gap: 8px;
|
||||
padding: 10px 12px;
|
||||
background: rgba(255,255,255,0.04);
|
||||
border-radius: 8px; border: 1px solid var(--border);
|
||||
font-size: 12px; color: var(--text-muted);
|
||||
}
|
||||
.mb-admin-hint i { color: var(--accent); margin-top: 2px; }
|
||||
.mb-admin-hint kbd {
|
||||
background: rgba(255,255,255,0.1);
|
||||
padding: 1px 6px; border-radius: 4px;
|
||||
font-size: 11px; color: var(--text-secondary);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -29,8 +29,6 @@ body {
|
||||
.mb-backdrop {
|
||||
position: fixed; inset: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: rgba(0,0,0,0.55);
|
||||
backdrop-filter: blur(2px);
|
||||
pointer-events: all;
|
||||
}
|
||||
.mb-backdrop-transparent {
|
||||
@ -41,7 +39,7 @@ body {
|
||||
|
||||
/* ── Modal ─────────────────────────────────────── */
|
||||
.mb-modal {
|
||||
width: 680px;
|
||||
width: 820px;
|
||||
background: var(--bg-modal);
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
@ -66,7 +64,7 @@ body {
|
||||
background: rgba(232,131,10,0.15);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.mb-title-main { font-size: 16px; font-family: inherit; font-weight: 700; display: block; }
|
||||
.mb-title-main { font-size: 18px; font-family: inherit; font-weight: 700; display: block; }
|
||||
.mb-title-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; }
|
||||
|
||||
.mb-close-btn {
|
||||
@ -99,7 +97,7 @@ body {
|
||||
display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
|
||||
}
|
||||
.mb-bike-card {
|
||||
width: 160px; padding: 16px 12px;
|
||||
width: 210px; padding: 20px 16px;
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 12px;
|
||||
@ -109,14 +107,14 @@ body {
|
||||
}
|
||||
.mb-bike-card:hover { border-color: rgba(232,131,10,0.4); transform: translateY(-2px); }
|
||||
.mb-bike-active { border-color: var(--accent) !important; background: rgba(232,131,10,0.08) !important; }
|
||||
.mb-bike-img { width: 120px; height: 75px; object-fit: contain; }
|
||||
.mb-bike-img { width: 160px; height: 100px; object-fit: contain; }
|
||||
.mb-bike-name { font-size: 13px; font-family: inherit; font-weight: 700; text-align: center; }
|
||||
.mb-bike-free { font-size: 11px; color: var(--accent); }
|
||||
.mb-bike-free { font-size: 13px; color: var(--accent); }
|
||||
.mb-bike-free i { margin-right: 4px; }
|
||||
|
||||
/* ── Claim-Button ──────────────────────────────── */
|
||||
.mb-claim-btn {
|
||||
padding: 13px 32px;
|
||||
padding: 15px 40px;
|
||||
background: var(--accent); border: none; border-radius: 8px;
|
||||
color: #fff; font-size: 15px; font-family: inherit; font-weight: 700;
|
||||
cursor: pointer; letter-spacing: 0.04em;
|
||||
|
||||
@ -380,7 +380,7 @@ AddEventHandler('mercyv-deathscreen:server:npcReviveOther', function(targetId)
|
||||
local src = source
|
||||
|
||||
if IsEMSOnDuty() then
|
||||
exports['hex_4_hud']:Notify(EMS, 'Es sind Sanitäter im Dienst! Bitte rufe den Notruf.', error, 5000)
|
||||
TriggerClientEvent('esx:showNotification', src, 'Es sind Sanitäter im Dienst! Bitte rufe den Notruf.') --exports['hex_4_hud']:Notify(EMS, 'Es sind Sanitäter im Dienst! Bitte rufe den Notruf.', error, 5000)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user