mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
fix(es_extended): Lint error
This commit is contained in:
@@ -90,9 +90,9 @@ end
|
||||
---@param cb function
|
||||
function ESX.OneSync.SpawnObject(model, coords, heading, cb)
|
||||
if type(model) == 'string' then model = joaat(model) end
|
||||
local coords = type(coords) == "vector3" and coords or vector3(coords.x, coords.y, coords.z)
|
||||
local objectCoords = type(coords) == "vector3" and coords or vector3(coords.x, coords.y, coords.z)
|
||||
CreateThread(function()
|
||||
local entity = CreateObject(model, coords, true, true)
|
||||
local entity = CreateObject(model, objectCoords, true, true)
|
||||
while not DoesEntityExist(entity) do Wait(50) end
|
||||
SetEntityHeading(entity, heading)
|
||||
cb(NetworkGetNetworkIdFromEntity(entity))
|
||||
|
||||
Reference in New Issue
Block a user