forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert
This commit is contained in:
parent
6d6d62dffe
commit
dcf5638188
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ end)
|
||||||
function IsVehicleSpawned(plate)
|
function IsVehicleSpawned(plate)
|
||||||
plate = string.gsub(string.upper(plate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
|
plate = string.gsub(string.upper(plate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
|
||||||
|
|
||||||
local vehicles = GetAllVehicles()
|
local vehicles = GetGamePool('CVehicle')
|
||||||
|
|
||||||
for _, vehicle in ipairs(vehicles) do
|
for _, vehicle in ipairs(vehicles) do
|
||||||
if DoesEntityExist(vehicle) then
|
if DoesEntityExist(vehicle) then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue