2026-04-14 17:41:39 +02:00

574 lines
22 KiB
Lua

Config = {}
Config.MenuItems = {
[1] = {
id = 'dispatch_menu',
title = 'Notruf',
icon = 'phone',
items = {
{
id = 'call_police_menu',
title = 'Polizei',
icon = 'shield-alt',
items = {
[1] = { id = 'police_normal', title = 'Normal', icon = 'phone', type = 'client', event = 'rlo_dispatch:police_normal', shouldClose = true },
[2] = { id = 'police_anon', title = 'Anonym', icon = 'user-secret', type = 'client', event = 'rlo_dispatch:police_anon', shouldClose = true },
[3] = { id = 'police_cancel', title = 'Abbrechen', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
{
id = 'call_ambulance_menu',
title = 'Rettungsdienst',
icon = 'ambulance',
items = {
[1] = { id = 'ems_normal', title = 'Normal', icon = 'phone', type = 'client', event = 'rlo_dispatch:ems_normal', shouldClose = true },
[2] = { id = 'ems_anon', title = 'Anonym', icon = 'user-secret', type = 'client', event = 'rlo_dispatch:ems_anon', shouldClose = true },
[3] = { id = 'ems_cancel', title = 'Abbrechen', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
{
id = 'call_mechanic_menu',
title = 'Mechaniker',
icon = 'wrench',
items = {
[1] = { id = 'mech_normal', title = 'Normal', icon = 'phone', type = 'client', event = 'rlo_dispatch:mech_normal', shouldClose = true },
[2] = { id = 'mech_anon', title = 'Anonym', icon = 'user-secret', type = 'client', event = 'rlo_dispatch:mech_anon', shouldClose = true },
[3] = { id = 'mech_cancel', title = 'Abbrechen', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
}
},
[2] = {
id = 'tasche',
title = 'Brieftasche',
icon = 'wallet',
items = {
{
id = 'ausweis',
title = 'Ausweis',
icon = 'passport',
items = {
{ id = 'ausweisansehen', title = 'Ansehen', icon = 'user', type = 'client', event = 'mercyv-id:radial:viewId', shouldClose = true },
{ id = 'ausweiszeigen', title = 'Zeigen', icon = 'user-friends', type = 'client', event = 'mercyv-id:radial:showId', shouldClose = true },
{ id = 'id_cancel', title = 'Zurück', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
{
id = 'fuhrerschein',
title = 'Führerschein',
icon = 'id-card',
items = {
{ id = 'fuhrerscheinansehen', title = 'Ansehen', icon = 'user', type = 'client', event = 'mercyv-id:radial:viewLicense', shouldClose = true },
{ id = 'fuhrerscheinzeigen', title = 'Zeigen', icon = 'user-friends', type = 'client', event = 'mercyv-id:radial:showLicense', shouldClose = true },
{ id = 'lic_cancel', title = 'Zurück', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
{
id = 'waffenschein',
title = 'Waffenschein',
icon = 'address-card',
items = {
{ id = 'waffenscheinansehen', title = 'Ansehen', icon = 'user', type = 'client', event = 'mercyv-id:radial:viewWeapon', shouldClose = true },
{ id = 'waffenscheinzeigen', title = 'Zeigen', icon = 'user-friends', type = 'client', event = 'mercyv-id:radial:showWeapon', shouldClose = true },
{ id = 'wp_cancel', title = 'Zurück', icon = 'times', type = 'client', event = '', shouldClose = true },
}
},
}
},
[3] = {
id = 'vehicle',
title = 'Fahrzeug',
icon = 'car',
items = {
{
id = 'vehicledoors',
title = 'Türen',
icon = 'door-open',
items = {
{ id = 'door0', title = 'Vorne L', icon = 'car-side', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door4', title = 'Motorhaube', icon = 'car', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door1', title = 'Vorne R', icon = 'car-side', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door3', title = 'Hinten R', icon = 'car-side', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door5', title = 'Kofferraum', icon = 'car', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door2', title = 'Hinten L', icon = 'car-side', type = 'client', event = 'rlo_radialmenu:client:openDoor', shouldClose = false },
{ id = 'door_cancel', title = 'Schließen', icon = 'times', type = 'client', event = '', shouldClose = true }
}
},
{
id = 'vehicleseats',
title = 'Sitz',
icon = 'chair',
items = {
{ id = 'seat', title = 'Fahrer', icon = 'chair', type = 'client', event = 'rlo_radialmenu:client:ChangeSeat', shouldClose = false },
{ id = 'seat_cancel', title = 'Abbrechen', icon = 'times', type = 'client', event = '', shouldClose = true }
}
},
{
id = 'motor',
title = 'Motor',
icon = 'power-off',
type = 'client',
event = 'rlo_radialmenu:client:motor',
shouldClose = false
},
{
id = 'tempomat',
title = 'Funktion',
icon = 'gauge-simple-high',
items = {
{ id = 'antilag_toggle', title = 'Anti-Lag System', icon = 'fire', type = 'client', event = '2step:Anti-lag', shouldClose = false },
{ id = 'tempomat1', title = 'Aus', icon = 'gauge-simple-high', type = 'client', event = 'rlo_radialmenu:client:tempomat', shouldClose = false },
{ id = 'tempomat2', title = '80 km/h', icon = 'gauge-simple-high', type = 'client', event = 'rlo_radialmenu:client:tempomat', shouldClose = false },
{ id = 'tempomat3', title = '100 km/h', icon = 'gauge-simple-high', type = 'client', event = 'rlo_radialmenu:client:tempomat', shouldClose = false },
{ id = 'tempomat4', title = '130 km/h', icon = 'gauge-simple-high', type = 'client', event = 'rlo_radialmenu:client:tempomat', shouldClose = false },
{ id = 'temp_cancel', title = 'Abbrechen', icon = 'times', type = 'client', event = '', shouldClose = true }
}
},
{
id = 'vehiclewindows',
title = 'Fenster',
icon = 'window-maximize',
items = {
{ id = 'window0', title = 'Vorne L', icon = 'window-maximize', type = 'client', event = 'rlo_radialmenu:client:openWindow', shouldClose = false },
{ id = 'closeallwindows', title = 'Alle Hoch', icon = 'arrow-up', type = 'client', event = 'rlo_radialmenu:client:closeWindows', shouldClose = false },
{ id = 'window1', title = 'Vorne R', icon = 'window-maximize', type = 'client', event = 'rlo_radialmenu:client:openWindow', shouldClose = false },
{ id = 'window3', title = 'Hinten R', icon = 'window-maximize', type = 'client', event = 'rlo_radialmenu:client:openWindow', shouldClose = false },
{ id = 'openallwindows', title = 'Alle Runter', icon = 'arrow-down', type = 'client', event = 'rlo_radialmenu:client:openAllWindows', shouldClose = false },
{ id = 'window2', title = 'Hiten L', icon = 'window-maximize', type = 'client', event = 'rlo_radialmenu:client:openWindow', shouldClose = false },
{ id = 'win_cancel', title = 'Schließen', icon = 'times', type = 'client', event = '', shouldClose = true }
}
},
}
},
[4] = {
id = 'jobinteractions',
title = 'Job / Fraktion',
icon = 'briefcase',
items = {}
}
}
Config.JobInteractions = {
[1] = {
id = 'dispatch_menu',
title = 'Notruf',
icon = 'phone',
items = {
{
id = 'call_police_menu',
title = 'Polizei',
icon = 'shield-alt',
items = {
{
id = 'police_normal',
title = 'Normal',
icon = 'phone',
type = 'cmd',
event = '000',
shouldClose = true
},
{
id = 'police_anon',
title = 'Anonym',
icon = 'user-secret',
type = 'cmd',
event = 'oooa',
shouldClose = true
},
{
id = 'police_cancel',
title = 'Abbrechen',
icon = 'times',
type = 'client',
event = '',
shouldClose = true
}
}
},
{
id = 'call_ambulance_menu',
title = 'Rettungsdienst',
icon = 'ambulance',
items = {
{
id = 'ems_normal',
title = 'Normal',
icon = 'phone',
type = 'cmd',
event = '911ems',
shouldClose = true
},
{
id = 'ems_anon',
title = 'Anonym',
icon = 'user-secret',
type = 'cmd',
event = '911emsa',
shouldClose = true
},
{
id = 'ems_cancel',
title = 'Abbrechen',
icon = 'times',
type = 'client',
event = '',
shouldClose = true
}
}
},
{
id = 'call_mechanic_menu',
title = 'Mechaniker',
icon = 'wrench',
items = {
{
id = 'mech_normal',
title = 'Normal',
icon = 'phone',
type = 'cmd',
event = 'mechanic',
shouldClose = true
},
{
id = 'mech_anon',
title = 'Anonym',
icon = 'user-secret',
type = 'cmd',
event = 'mechanica',
shouldClose = true
},
{
id = 'mech_cancel',
title = 'Abbrechen',
icon = 'times',
type = 'client',
event = '',
shouldClose = true
}
}
}
}
},
["blackcrown"] = {
{
id = 'crimeinteraction',
title = 'Interaktion',
icon = 'user-ninja', -- Passt besser zu Crime/Gangs
items = {
{
id = 'cuffplayer',
title = 'Fesseln (Kabelbinder)',
icon = 'hands-bound',
type = 'client',
event = 'rlo_handcuff:handcuffplayer',
shouldClose = false
},
{
id = 'uncuffplayer',
title = 'Entfesseln',
icon = 'hands',
type = 'client',
event = 'rlo_handcuff:uncuffplayer',
shouldClose = false
},
{
id = 'escort',
title = 'Packen / Mitziehen',
icon = 'people-pulling',
type = 'client',
event = 'rlo_handcuff:grabplayer',
shouldClose = false
},
{
id = 'geisel',
title = 'Geisel nehmen',
icon = 'gun',
type = 'cmd',
event = 'TakeHostage',
shouldClose = true
},
{
id = 'searchplayer',
title = 'Ausrauben / Filzen',
icon = 'mask',
type = 'client',
event = 'rlo_core:searchplayer',
shouldClose = true
},
{
id = 'putincar',
title = 'In Fahrzeug werfen',
icon = 'truck-ramp-box',
type = 'client',
event = 'rlo_handcuff:putincar',
shouldClose = false
},
{
id = 'exitcar',
title = 'Aus Fahrzeug zerren',
icon = 'door-open',
type = 'client',
event = 'rlo_handcuff:exitcar',
shouldClose = false
},
}
},
},
["admin"] = {
{
id = 'admininteraction',
title = 'Interaktion',
icon = 'user',
items = {
{
id = 'cuffplayer',
title = 'Festnehmen',
icon = 'handcuffs',
type = 'client',
event = 'rlo_handcuff:handcuffplayer',
shouldClose = false
},
{
id = 'uncuffplayer',
title = 'Freilassen',
icon = 'handcuffs',
type = 'client',
event = 'rlo_handcuff:uncuffplayer',
shouldClose = false
},
{
id = 'putincar',
title = 'In Fahrzeug',
icon = 'door-open',
type = 'client',
event = 'rlo_handcuff:putincar',
shouldClose = false
},
{
id = 'exitcar',
title = 'Aus Fahrzeug',
icon = 'door-open',
type = 'client',
event = 'rlo_handcuff:exitcar',
shouldClose = false
},
{
id = 'searchplayer',
title = 'Durchsuchen',
icon = 'search',
type = 'client',
event = 'rlo_core:searchplayer',
shouldClose = true
},
{
id = 'viewidcard',
title = 'Ausweis',
icon = 'id-card',
type = 'client',
event = 'rlo_core:viewidcard',
shouldClose = true
},
{
id = 'escort',
title = 'Nehmen',
icon = 'people-pulling',
type = 'client',
event = 'rlo_handcuff:grabplayer',
shouldClose = false
},
}
}
}
}
Config.TrunkClasses = {
[0] = {allowed = true, x = 0.0, y = -1.5, z = 0.0}, -- Coupes
[1] = {allowed = true, x = 0.0, y = -2.0, z = 0.0}, -- Sedans
[2] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- SUVs
[3] = {allowed = true, x = 0.0, y = -1.5, z = 0.0}, -- Coupes
[4] = {allowed = true, x = 0.0, y = -2.0, z = 0.0}, -- Muscle
[5] = {allowed = true, x = 0.0, y = -2.0, z = 0.0}, -- Sports Classics
[6] = {allowed = true, x = 0.0, y = -2.0, z = 0.0}, -- Sports
[7] = {allowed = true, x = 0.0, y = -2.0, z = 0.0}, -- Super
[8] = {allowed = false, x = 0.0, y = -1.0, z = 0.25}, -- Motorcycles
[9] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Off-road
[10] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Industrial
[11] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Utility
[12] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Vans
[13] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Cycles
[14] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Boats
[15] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Helicopters
[16] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Planes
[17] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Service
[18] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Emergency
[19] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Military
[20] = {allowed = true, x = 0.0, y = -1.0, z = 0.25}, -- Commercial
[21] = {allowed = true, x = 0.0, y = -1.0, z = 0.25} -- Trains
}
Config.ExtrasEnabled = true
Config.Commands = {
["shirt"] = {
Func = function() ExecuteCommand("top") end,
Sprite = "top",
Desc = "Take your shirt off/on",
Button = 1,
Name = "Torso"
},
["gloves"] = {
Func = function() ExecuteCommand("gloves") end,
Sprite = "gloves",
Desc = "Take your gloves off/on",
Button = 2,
Name = "Gloves"
},
["visor"] = {
Func = function() ExecuteCommand("visor") end,
Sprite = "visor",
Desc = "Toggle hat variation",
Button = 3,
Name = "Visor"
},
["bag"] = {
Func = function() ExecuteCommand("bag") end,
Sprite = "bag",
Desc = "Opens or closes your bag",
Button = 8,
Name = "Bag"
},
["shoes"] = {
Func = function() ExecuteCommand("shoes") end,
Sprite = "shoes",
Desc = "Take your shoes off/on",
Button = 5,
Name = "Shoes"
},
["vest"] = {
Func = function() ExecuteCommand("vest") end,
Sprite = "vest",
Desc = "Take your vest off/on",
Button = 14,
Name = "Vest"
},
["hair"] = {
Func = function() ExecuteCommand("hair") end,
Sprite = "hair",
Desc = "Put your hair up/down/in a bun/ponytail.",
Button = 7,
Name = "Hair"
},
["hat"] = {
Func = function() ExecuteCommand("hat") end,
Sprite = "hat",
Desc = "Take your hat off/on",
Button = 4,
Name = "Hat"
},
["glasses"] = {
Func = function() ExecuteCommand("glasses") end,
Sprite = "glasses",
Desc = "Take your glasses off/on",
Button = 9,
Name = "Glasses"
},
["ear"] = {
Func = function() ExecuteCommand("ear") end,
Sprite = "ear",
Desc = "Take your ear accessory off/on",
Button = 10,
Name = "Ear"
},
["neck"] = {
Func = function() ExecuteCommand("neck") end,
Sprite = "neck",
Desc = "Take your neck accessory off/on",
Button = 11,
Name = "Neck"
},
["watch"] = {
Func = function() ExecuteCommand("watch") end,
Sprite = "watch",
Desc = "Take your watch off/on",
Button = 12,
Name = "Watch",
Rotation = 5.0
},
["bracelet"] = {
Func = function() ExecuteCommand("bracelet") end,
Sprite = "bracelet",
Desc = "Take your bracelet off/on",
Button = 13,
Name = "Bracelet"
},
["mask"] = {
Func = function() ExecuteCommand("mask") end,
Sprite = "mask",
Desc = "Take your mask off/on",
Button = 6,
Name = "Mask"
}
}
local Bags = {[40] = true, [41] = true, [44] = true, [45] = true}
Config.ExtraCommands = {
["pants"] = {
Func = function() ToggleClothing("Pants", true) end,
Sprite = "pants",
Desc = "Take your pants off/on",
Name = "Pants",
OffsetX = -0.04,
OffsetY = 0.0
},
["shirt"] = {
Func = function() ToggleClothing("Shirt", true) end,
Sprite = "shirt",
Desc = "Take your shirt off/on",
Name = "shirt",
OffsetX = 0.04,
OffsetY = 0.0
},
["resetclothes"] = {
Func = function()
if not ResetClothing(true) then
Notify('Nothing To Reset', 'error')
end
end,
Sprite = "reset",
Desc = "Revert everything back to normal",
Name = "resetclothes",
OffsetX = 0.12,
OffsetY = 0.2,
Rotate = true
},
["bagoff"] = {
Func = function() ToggleClothing("Bagoff", true) end,
Sprite = "bagoff",
SpriteFunc = function()
local Bag = GetPedDrawableVariation(PlayerPedId(), 5)
local BagOff = LastEquipped["Bagoff"]
if LastEquipped["Bagoff"] then
if Bags[BagOff.Drawable] then
return "bagoff"
else
return "paraoff"
end
end
if Bag ~= 0 then
if Bags[Bag] then
return "bagoff"
else
return "paraoff"
end
else
return false
end
end,
Desc = "Take your bag off/on",
Name = "bagoff",
OffsetX = -0.12,
OffsetY = 0.2
}
}