RedM Natives

NET_TO_ENT

gets the entity id of a network id

Hash0xBFFEAB45A9A9094A
Runtime nameNetToEnt
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBFFEAB45A9A9094A

Signature

Entity NET_TO_ENT(int netHandle);

Parameters

NameTypeDescription
netHandleint—

Returns Entity

Description

gets the entity id of a network id

Usage

Lua
local retval = NetToEnt(netHandle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBFFEAB45A9A9094A, netHandle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetToEnt(netHandle);

// by hash
const retval = Citizen.invokeNative('0xBFFEAB45A9A9094A', netHandle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xBFFEAB45A9A9094A, netHandle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.