forked from Simnation/Main
Merge branch 'master' of https://git.evolution-state-life.de/Evolution-State-Life/Main
This commit is contained in:
commit
c900f4d57b
1 changed files with 4 additions and 3 deletions
|
@ -55,7 +55,8 @@ function OpenChiefAddVehicleMenu()
|
||||||
for _, v in ipairs(allVehicles) do
|
for _, v in ipairs(allVehicles) do
|
||||||
if DoesEntityExist(v) then
|
if DoesEntityExist(v) then
|
||||||
isSpawned = true
|
isSpawned = true
|
||||||
mods = QBCore.Functions.GetVehicleProperties(v)
|
local vmods = QBCore.Functions.GetVehicleProperties(v)
|
||||||
|
mods = json.encode(vmods)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ function OpenChiefAddVehicleMenu()
|
||||||
print("Chiefsettings: "..mods)
|
print("Chiefsettings: "..mods)
|
||||||
|
|
||||||
table.insert(opt, {
|
table.insert(opt, {
|
||||||
title = "Kennzeichen: "..mods.plate,
|
title = "Kennzeichen: "..vehicles[i].plate,
|
||||||
description = "Deine Ersatzschlüssel: "..vehicles[i].keys,
|
description = "Deine Ersatzschlüssel: "..vehicles[i].keys,
|
||||||
icon = 'car',
|
icon = 'car',
|
||||||
onSelect = function()
|
onSelect = function()
|
||||||
|
@ -86,7 +87,7 @@ function OpenChiefAddVehicleMenu()
|
||||||
SetNewWaypoint(Config.KeyMaker.x, Config.KeyMaker.y)
|
SetNewWaypoint(Config.KeyMaker.x, Config.KeyMaker.y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end, mods.plate, value)
|
end, vehicles[i].plate, value)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue