NETWORK_GET_NETWORK_ID_FROM_ENTITY
Returns the network id of the entity.
The entity must be networked; check NETWORK_GET_ENTITY_IS_NETWORKED first.
Signature
int NETWORK_GET_NETWORK_ID_FROM_ENTITY(Entity entity); // 0xA11700682F3AD45C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| 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.
local result = Citizen.InvokeNative(0xA11700682F3AD45C, -- NETWORK_GET_NETWORK_ID_FROM_ENTITY
PlayerPedId(), -- Entity entity
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xA11700682F3AD45C", // NETWORK_GET_NETWORK_ID_FROM_ENTITY
PlayerPedId(), // Entity entity
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xA11700682F3AD45C, // NETWORK_GET_NETWORK_ID_FROM_ENTITY
API.PlayerPedId() // Entity entity
);Related NETWORK natives
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_ROPE_ID_FROM_NETWORK_ID
- NETWORK_GET_DESTROYER_OF_NETWORK_ID
- NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY
- NETWORK_GET_DISPLAYNAMES_FROM_HANDLES
- NETWORK_GET_ENTITY_IS_NETWORKED
- NETWORK_GET_ENTITY_KILLER_OF_PLAYER
- NETWORK_GET_GAMERTAG_FROM_HANDLE
- NETWORK_GET_INSTANCE_ID_OF_THIS_SCRIPT
- NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
- NETWORK_GET_PLAYER_INDEX_FROM_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.