NET_TO_ENT
Returns the entity handle for the given network id.
Check NETWORK_DOES_NETWORK_ID_EXIST first.
Signature
Entity NET_TO_ENT(int netHandle); // 0xBFFEAB45A9A9094A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | netHandle | int |
Facts
| Name | NET_TO_ENT |
|---|---|
| Hash | 0xBFFEAB45A9A9094A |
| Namespace | |
| Returns | Entity |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0xBFFEAB45A9A9094A, -- NET_TO_ENT
0, -- int netHandle
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0xBFFEAB45A9A9094A", // NET_TO_ENT
0, // int netHandle
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0xBFFEAB45A9A9094A, // NET_TO_ENT
0 // int netHandle
);Related NETWORK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.