forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert
This commit is contained in:
parent
a474caf290
commit
914bf4511c
1 changed files with 0 additions and 2 deletions
|
@ -30,7 +30,6 @@ AddEventHandler('mh_jobgarage:notify', function(title, text, type)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
function IsVehicleSpawned(plate)
|
function IsVehicleSpawned(plate)
|
||||||
plate = string.gsub(string.upper(plate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
|
|
||||||
|
|
||||||
local vehicles = GetGamePool('CVehicle')
|
local vehicles = GetGamePool('CVehicle')
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ function IsVehicleSpawned(plate)
|
||||||
if DoesEntityExist(vehicle) then
|
if DoesEntityExist(vehicle) then
|
||||||
local vehiclePlate = QBCore.Functions.GetPlate(vehicle)
|
local vehiclePlate = QBCore.Functions.GetPlate(vehicle)
|
||||||
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
|
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
|
||||||
vehiclePlate = string.gsub(string.upper(vehiclePlate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
|
|
||||||
|
|
||||||
if vehiclePlate == plate then
|
if vehiclePlate == plate then
|
||||||
return true, mods
|
return true, mods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue