Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 433 Bytes

GetPlayerPed.md

File metadata and controls

25 lines (19 loc) · 433 Bytes
ns
PLAYER

GET_PLAYER_PED

// 0x43A66C31C68491C0 0x6E31E993
Ped GET_PLAYER_PED(Player playerId);

Gets the ped for a specified player index.

Parameters

  • playerId: The player index, or -1 to get the local player ped.

Return value

The specified player's ped, or 0 if invalid.

Examples

local playerIdx = GetPlayerFromServerId(source)
local ped = GetPlayerPed(playerIdx)

-- act on the ped