NETWORK_PLAYER_ID_TO_INT
Does exactly the same thing as PLAYER_ID()
Hash
0x8A9386F0749A17FARuntime name
NetworkPlayerIdToIntNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xEE68096F9F37341ESignature
int NETWORK_PLAYER_ID_TO_INT();Returns int
Description
Does exactly the same thing as PLAYER_ID()
Usage
local retval = NetworkPlayerIdToInt()
-- always works, by hash
local retval = Citizen.InvokeNative(0x8A9386F0749A17FA, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkPlayerIdToInt();
// by hash
const retval = Citizen.invokeNative('0x8A9386F0749A17FA', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x8A9386F0749A17FA);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.