Skip to main content

esx:playerPedChanged

Available from this version: 1.9.1

This event is triggered when the player ped changed

Arguments

ArgumentTypeExplanation
playerPednumberped id (CLIENT SIDE)
netIDnumberped netID (SERVER SIDE)

Example Client-Side Usage

AddEventHandler('esx:playerPedChanged', function(ped)
FreezeEntityPosition(ped, true)
end)

Example Server-Side Usage

RegisterNetEvent('esx:playerPedChanged', function(netID)
print(('playerName: %s, source: %s, ped: %s'):format(GetPlayerName(source), source, netID))
end)