diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index e4454ac8a..4240ce48c 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -79,9 +79,9 @@ CreateThread(function() end) function AddTargetOptions(zone) - exports['qb-target']:AddTargetEntity(npcHandle, { - options = { - { + + local opt = { + { type = "client", event = "mh_garage:storeVehicle", icon = "fas fa-parking", @@ -103,7 +103,9 @@ function AddTargetOptions(zone) label = "Fahrzeuge Verwalten", } end - }, + } + exports['qb-target']:AddTargetEntity(npcHandle, { + options = opt, distance = 2.5 }) end diff --git a/resources/[carscripts]/mh_garage/client/verwaltung.lua b/resources/[carscripts]/mh_garage/client/verwaltung.lua index 7416a2cd4..47e713455 100644 --- a/resources/[carscripts]/mh_garage/client/verwaltung.lua +++ b/resources/[carscripts]/mh_garage/client/verwaltung.lua @@ -61,7 +61,7 @@ function OpenVerwaltung(vehicleInfos) print(selected, secondary, json.encode(args, {indent=true})) end, options = { - {label = "Name ändern", icon = "paper", } + {label = "Name ändern", icon = "paper"}, {label = 'Transport to:', icon = 'arrows-up-down-left-right', values=garages}, } }, function(selected, scrollIndex, args)