48 lines
1.7 KiB
Lua
48 lines
1.7 KiB
Lua
-- ═══════════════════════════════════════════════════════════════
|
||
-- 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 = "scorcher", label = "Mountainbike", image = "scorcher" },
|
||
}
|
||
|
||
-- 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, ntype)
|
||
exports['hex_4_hud']:Notify("Fahrrad", msg, ntype or "info", 3000)
|
||
end
|
||
|
||
function Config.ServerNotification(src, msg, ntype)
|
||
TriggerClientEvent("hex_4_hud:Notify", src, "Fahrrad", msg, ntype or "info", 3000)
|
||
end
|