The Lab
PLAYER native

NETWORK_PLAYER_ID_TO_INT

returns int0 paramsbuild 1207

Returns the local network player id as an integer.

Signature

C
int NETWORK_PLAYER_ID_TO_INT(); // 0x8A9386F0749A17FA b1207

Parameters

This native takes no parameters.

Facts

Facts about NETWORK_PLAYER_ID_TO_INT
Name
NETWORK_PLAYER_ID_TO_INT
Hash
0x8A9386F0749A17FA
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x8A9386F0749A17FA, -- NETWORK_PLAYER_ID_TO_INT
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x8A9386F0749A17FA", // NETWORK_PLAYER_ID_TO_INT
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x8A9386F0749A17FA); // NETWORK_PLAYER_ID_TO_INT
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.