mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
fix(client/main): Set PlayerData.ped initial value correctly
This commit is contained in:
+2
-2
@@ -9,12 +9,12 @@ Citizen.CreateThread(function()
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
fix(client/main): Set PlayerData.ped correctly
|
||||
RegisterNetEvent('esx:playerLoaded')
|
||||
AddEventHandler('esx:playerLoaded', function(playerData, isNew)
|
||||
ESX.PlayerLoaded = true
|
||||
ESX.PlayerData = playerData
|
||||
ESX.PlayerData.ped = ESX.PlayerData.ped
|
||||
ESX.PlayerData.ped = PlayerPedId()
|
||||
|
||||
FreezeEntityPosition(ESX.PlayerData.ped, true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user