forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/client/chiefsettings.lua aktualisiert
This commit is contained in:
parent
de57457b8f
commit
15bed7d09f
1 changed files with 20 additions and 0 deletions
|
@ -36,6 +36,26 @@ function OpenChiefMenu(vehicles)
|
||||||
lib.showContext("ChiefSettingsMenu")
|
lib.showContext("ChiefSettingsMenu")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function IsVehicleSpawned(plate)
|
||||||
|
|
||||||
|
local vehicles = GetGamePool('CVehicle')
|
||||||
|
|
||||||
|
for _, vehicle in ipairs(vehicles) do
|
||||||
|
if DoesEntityExist(vehicle) then
|
||||||
|
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
|
||||||
|
local vehiclePlate = mods.plate
|
||||||
|
|
||||||
|
if vehiclePlate == plate then
|
||||||
|
print("Function: "..mods)
|
||||||
|
return true, mods
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false, nil -- Vehicle not found
|
||||||
|
end
|
||||||
|
|
||||||
function OpenChiefAddVehicleMenu()
|
function OpenChiefAddVehicleMenu()
|
||||||
local Player = QBCore.Functions.GetPlayerData()
|
local Player = QBCore.Functions.GetPlayerData()
|
||||||
local opt = {}
|
local opt = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue