Merge pull request #1314 from Arctos2win/main

hotfix(es_extended/client/main.lua):reinitiating backwards compatibil…
This commit is contained in:
Gellipapa
2024-02-17 23:42:52 +01:00
committed by GitHub
+2 -1
View File
@@ -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)
@@ -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