GET_PLAYER_INDEX
Returns the player index of the local player.
Signature
Player GET_PLAYER_INDEX(); // 0x47E385B0D957C8D4 b1207Parameters
This native takes no parameters.
Facts
| Name | GET_PLAYER_INDEX |
|---|---|
| Hash | 0x47E385B0D957C8D4 |
| Namespace | |
| Returns | Player |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local player = Citizen.InvokeNative(0x47E385B0D957C8D4, -- GET_PLAYER_INDEX
Citizen.ResultAsInteger()
)
print(player)const player = Citizen.invokeNative("0x47E385B0D957C8D4", // GET_PLAYER_INDEX
Citizen.resultAsInteger()
);
console.log(player)int player = Function.Call<int>((Hash)0x47E385B0D957C8D4); // GET_PLAYER_INDEXRelated PLAYER natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.