1
0
Fork 0
forked from Simnation/Main

resources/[jobs]/[civ]/mh_jobgarage/client/function.lua aktualisiert

This commit is contained in:
Miho 2025-06-24 23:19:54 +02:00
parent a474caf290
commit 914bf4511c

View file

@ -30,7 +30,6 @@ AddEventHandler('mh_jobgarage:notify', function(title, text, type)
end)
function IsVehicleSpawned(plate)
plate = string.gsub(string.upper(plate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
local vehicles = GetGamePool('CVehicle')
@ -38,7 +37,6 @@ function IsVehicleSpawned(plate)
if DoesEntityExist(vehicle) then
local vehiclePlate = QBCore.Functions.GetPlate(vehicle)
local mods = QBCore.Functions.GetVehicleProperties(vehicle)
vehiclePlate = string.gsub(string.upper(vehiclePlate), '^%s*(.-)%s*$', '%1'):gsub(' ', '')
if vehiclePlate == plate then
return true, mods