forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert
This commit is contained in:
parent
49bcb83d1b
commit
c48073ce09
1 changed files with 2 additions and 1 deletions
|
@ -35,10 +35,11 @@ function IsVehicleSpawned(plate)
|
|||
|
||||
for _, vehicle in ipairs(vehicles) do
|
||||
if DoesEntityExist(vehicle) then
|
||||
local vehiclePlate = QBCore.Functions.GetPlate(vehicle)
|
||||
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
|
||||
local vehiclePlate = mods.plate
|
||||
|
||||
if vehiclePlate == plate then
|
||||
print("Function: "..mods)
|
||||
return true, mods
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue