diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index 4240ce48c..909262370 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -94,16 +94,18 @@ function AddTargetOptions(zone) icon = "fas fa-car", label = "Fahrzeug ausparken", args = zone - }, - if Config.Verwaltung.garage then - { - type = "client", - event = "mh_garage:verwaltungVeh", - icon = "", - label = "Fahrzeuge Verwalten", - } - end + } } + + if Config.Verwaltung.garage then + table.insert(opt, { + type = "client", + event = "mh_garage:verwaltungVeh", + icon = "", + label = "Fahrzeuge Verwalten", + }) + end + exports['qb-target']:AddTargetEntity(npcHandle, { options = opt, distance = 2.5