mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
fix(es_extended_server/functions): fix GetVehicleType returning nil
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user