NETWORK_GET_PLAYER_INDEX
Hash
0x24FB80D107371267Runtime name
NetworkGetPlayerIndexNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x24FB80D107371267Signature
int NETWORK_GET_PLAYER_INDEX(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns int
Usage
local retval = NetworkGetPlayerIndex(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x24FB80D107371267, player, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetPlayerIndex(player);
// by hash
const retval = Citizen.invokeNative('0x24FB80D107371267', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x24FB80D107371267, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.