fix(es_extended_server/functions): fix GetVehicleType returning nil

This commit is contained in:
Kenshin13
2025-07-06 14:09:51 +02:00
parent cb449b9112
commit bb03bd0fe3
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -401,6 +401,8 @@ function ESX.GetVehicleType(model, player, cb)
elseif cb then
cb(result)
end
return result
end
model = type(model) == "string" and joaat(model) or model
@@ -100,6 +100,8 @@ function ESX.OneSync.SpawnVehicle(vehicleModel, coords, heading, vehicleProperti
elseif cb then
cb(result)
end
return result
end
local function reject(err)