diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 03b7f1be..5959ccac 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -532,7 +532,7 @@ end ---@param heading number The heading of the vehicle ---@param cb? function The callback function ---@param networked? boolean Whether the vehicle should be networked ----@return nil +---@return number? vehicle function ESX.Game.SpawnVehicle(vehicleModel, coords, heading, cb, networked) local model = type(vehicleModel) == "number" and vehicleModel or joaat(vehicleModel) local vector = type(coords) == "vector3" and coords or vec(coords.x, coords.y, coords.z) diff --git a/[core]/es_extended/server/modules/onesync.lua b/[core]/es_extended/server/modules/onesync.lua index a20cd16c..67111602 100644 --- a/[core]/es_extended/server/modules/onesync.lua +++ b/[core]/es_extended/server/modules/onesync.lua @@ -83,7 +83,7 @@ end ---@param heading number ---@param properties table ---@param cb? fun(netId: number) ----@return number|nil netId +---@return number? netId function ESX.OneSync.SpawnVehicle(model, coords, heading, properties, cb) if cb and not ESX.IsFunctionReference(cb) then error("Invalid callback function")