diff --git a/resources/[carscripts]/mh_garage/client/stored.lua b/resources/[carscripts]/mh_garage/client/stored.lua index dee93064b..d13a36704 100644 --- a/resources/[carscripts]/mh_garage/client/stored.lua +++ b/resources/[carscripts]/mh_garage/client/stored.lua @@ -4,9 +4,7 @@ AddEventHandler('mh_garage:storeVehicle', function(zone) print(json.encode(zone)) local coords = GetEntityCoords(PlayerPedId()) local vehicles = GetGamePool('CVehicle') - local random = SelectName() - - print(json.encode(random)) + local randomname, randomdes = SelectName() local opt = {} @@ -40,9 +38,11 @@ AddEventHandler('mh_garage:storeVehicle', function(zone) lib.registerContext({ id = "StoredVehicles", - title = "Fahrzeugwärter", - description = "Ich pass auf eure Fahrzeuge auf, Ihr könnt mir vertrauen" + title = randomname, + description = randomdes }) + + lib.showContext("StoredVehicles") end end end)