The Lab
NETWORK native

NETWORK_GET_PLAYER_INDEX_FROM_PED

returns Player1 parambuild 1207

Returns the player that controls the ped.

Signature

C
Player NETWORK_GET_PLAYER_INDEX_FROM_PED(Ped ped); // 0x6C0E2E0125610278 b1207

Parameters

#NameType
1pedPed

Facts

Facts about NETWORK_GET_PLAYER_INDEX_FROM_PED
Name
NETWORK_GET_PLAYER_INDEX_FROM_PED
Hash
0x6C0E2E0125610278
Namespace
Returns
Player
Game build
1207

Examples

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

Lua
local player = Citizen.InvokeNative(0x6C0E2E0125610278, -- NETWORK_GET_PLAYER_INDEX_FROM_PED
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(player)
JavaScript
const player = Citizen.invokeNative("0x6C0E2E0125610278", // NETWORK_GET_PLAYER_INDEX_FROM_PED
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(player)
C#
int player = Function.Call<int>((Hash)0x6C0E2E0125610278, // NETWORK_GET_PLAYER_INDEX_FROM_PED
  API.PlayerPedId() // Ped ped
);
All NETWORK natives

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