natives.GET PLAYER CHAR: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
Line 4: Line 4:
|type = function
|type = function
|name = natives.GET_PLAYER_CHAR
|name = natives.GET_PLAYER_CHAR
|parameters = int ped, int ped1
|parameters = int player
|parameter1 = int ped The character identifier to act on.
|parameter1 = int player Player index.
|parameter2 = int ped1 The character identifier to act on.
|usage = returns the character handle associated with a player
|usage = get the character handle for a player.
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
}}
}}

Latest revision as of 09:18, 12 June 2026

natives.GET_PLAYER_CHAR

Signature: void natives.GET_PLAYER_CHAR(int player)

Usage: returns the character handle associated with a player

Parameters

int player Player index.

Return

void

On failure: void