Skip to content

Commit

Permalink
Merge pull request #1314 from Arctos2win/main
Browse files Browse the repository at this point in the history
hotfix(es_extended/client/main.lua):reinitiating backwards compatibil…
  • Loading branch information
Gellipapa authored Feb 17, 2024
2 parents 7c59848 + 9d3ce9b commit 89708d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ESX.SpawnPlayer(skin, coords, cb)
p:resolve()
end)
Citizen.Await(p)

local playerPed = PlayerPedId()
FreezeEntityPosition(playerPed, true)
SetEntityCoordsNoOffset(playerPed, coords.x, coords.y, coords.z, false, false, false, true)
Expand All @@ -34,6 +34,7 @@ function ESX.SpawnPlayer(skin, coords, cb)
end
FreezeEntityPosition(playerPed, false)
NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, coords.heading, true, true, false)
TriggerEvent('playerSpawned', coords)
cb()
end

Expand Down

0 comments on commit 89708d2

Please sign in to comment.