2026-04-15 22:15:01 +02:00

50 lines
1.8 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ═══════════════════════════════════════════════════════════════
-- MercyV Bike Konfiguration
-- ═══════════════════════════════════════════════════════════════
Config = {}
Config.Framework = "esx" -- esx | qb
Config.NewESX = true
Config.TextUIHandler = "custom" -- custom (hex_4_hud) | esx | qb
-- NPC Position (kann im Spiel mit /bikeadmin gesetzt werden)
Config.NPC = {
model = "a_m_m_beach_01",
x = 0.0,
y = 0.0,
z = 0.0,
heading = 0.0,
radius = 3.0, -- Interaktionsradius in Metern
}
-- Fahrrad-Optionen
Config.Bikes = {
{ model = "tribike", label = "Mountainbike", image = "tribike" },
{ model = "tribike2", label = "Mountainbike Pro", image = "tribike2" },
{ model = "tribike3", label = "Mountainbike Max", image = "tribike3" },
}
-- Spawn-Position des Fahrrads (vor dem Spieler)
Config.SpawnOffset = 3.0 -- Meter vor dem Spieler
-- ACE-Permission für Admin-Befehle
Config.AdminAce = "mercyv-bike.admin"
-- Benachrichtigungs-Texte
Config.Notify = {
ALREADY_CLAIMED = "Du hast bereits ein Fahrrad erhalten.",
CLAIMED = "Fahrrad erfolgreich erhalten!",
NO_ACCESS = "Du hast keine Berechtigung.",
}
-- ─── Interne Hilfsfunktionen ────────────────────────────────────
function Config.ClientNotification(msg, type)
exports['hex_4_hud']:SendNotification(msg, type or "info")
end
function Config.ServerNotification(src, msg, type)
TriggerClientEvent('mercyv-bike:notify', src, msg, type or "info")
end