forked from Simnation/Main
Update stored.lua
This commit is contained in:
parent
52d304fff4
commit
c0327f4ebd
1 changed files with 5 additions and 5 deletions
|
@ -4,9 +4,7 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
||||||
print(json.encode(zone))
|
print(json.encode(zone))
|
||||||
local coords = GetEntityCoords(PlayerPedId())
|
local coords = GetEntityCoords(PlayerPedId())
|
||||||
local vehicles = GetGamePool('CVehicle')
|
local vehicles = GetGamePool('CVehicle')
|
||||||
local random = SelectName()
|
local randomname, randomdes = SelectName()
|
||||||
|
|
||||||
print(json.encode(random))
|
|
||||||
|
|
||||||
local opt = {}
|
local opt = {}
|
||||||
|
|
||||||
|
@ -40,9 +38,11 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
||||||
|
|
||||||
lib.registerContext({
|
lib.registerContext({
|
||||||
id = "StoredVehicles",
|
id = "StoredVehicles",
|
||||||
title = "Fahrzeugwärter",
|
title = randomname,
|
||||||
description = "Ich pass auf eure Fahrzeuge auf, Ihr könnt mir vertrauen"
|
description = randomdes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
lib.showContext("StoredVehicles")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue