RedM Natives

NETWORK_PLAYER_ID_TO_INT

Does exactly the same thing as PLAYER_ID()

Hash0x8A9386F0749A17FA
Runtime nameNetworkPlayerIdToInt
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEE68096F9F37341E

Signature

int NETWORK_PLAYER_ID_TO_INT();

Returns int

Description

Does exactly the same thing as PLAYER_ID()

Usage

Lua
local retval = NetworkPlayerIdToInt()

-- always works, by hash
local retval = Citizen.InvokeNative(0x8A9386F0749A17FA, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkPlayerIdToInt();

// by hash
const retval = Citizen.invokeNative('0x8A9386F0749A17FA', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x8A9386F0749A17FA);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.