Skip to main content

GET_PLAYER_ID_FOR_THIS_PED

Game.GetPlayerIdForThisPedHash0x733B61C6
Usage
local playerIdForThisPed = Game.GetPlayerIdForThisPed(charIndex)

Returns the player index of a player whos ped is the one with the given ped index. Returns -1 otherwise.

Parameters

  • charIndexintegerint

Returns

  • playerIdForThisPedintegerreturn value
Original declaration
// 0x733B61C6
int GET_PLAYER_ID_FOR_THIS_PED(int charIndex);