NETWORK_GET_PLAYER_INDEX_FROM_PED
Returns the Player associated to a given Ped when in an online session.
Hash
0x6C0E2E0125610278Runtime name
NetworkGetPlayerIndexFromPedNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6C0E2E0125610278Signature
Player NETWORK_GET_PLAYER_INDEX_FROM_PED(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Player
Description
Returns the Player associated to a given Ped when in an online session.
Usage
local retval = NetworkGetPlayerIndexFromPed(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x6C0E2E0125610278, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetPlayerIndexFromPed(ped);
// by hash
const retval = Citizen.invokeNative('0x6C0E2E0125610278', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x6C0E2E0125610278, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.