forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert
This commit is contained in:
parent
cbdc3609b8
commit
de57457b8f
1 changed files with 1 additions and 20 deletions
|
@ -27,23 +27,4 @@ end
|
|||
RegisterNetEvent('mh_jobgarage:notify')
|
||||
AddEventHandler('mh_jobgarage:notify', function(title, text, type)
|
||||
Notification(title, text, type)
|
||||
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
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue