The Lab
NETWORK native

NETWORK_GET_NETWORK_ID_FROM_ENTITY

returns int1 parambuild 1207

Returns the network id of the entity.

The entity must be networked; check NETWORK_GET_ENTITY_IS_NETWORKED first.

Signature

C
int NETWORK_GET_NETWORK_ID_FROM_ENTITY(Entity entity); // 0xA11700682F3AD45C b1207

Parameters

#NameType
1entityEntity

Facts

Facts about NETWORK_GET_NETWORK_ID_FROM_ENTITY
Name
NETWORK_GET_NETWORK_ID_FROM_ENTITY
Hash
0xA11700682F3AD45C
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xA11700682F3AD45C, -- NETWORK_GET_NETWORK_ID_FROM_ENTITY
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xA11700682F3AD45C", // NETWORK_GET_NETWORK_ID_FROM_ENTITY
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xA11700682F3AD45C, // NETWORK_GET_NETWORK_ID_FROM_ENTITY
  API.PlayerPedId() // Entity entity
);
All NETWORK natives

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