RedM Natives

NETWORK_GET_ENTITY_FROM_NETWORK_ID

Hash0xCE4E5D9B0A4FF560
Runtime nameNetworkGetEntityFromNetworkId
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCE4E5D9B0A4FF560

Signature

Entity NETWORK_GET_ENTITY_FROM_NETWORK_ID(int netId);

Parameters

NameTypeDescription
netIdint—

Returns Entity

Usage

Lua
local retval = NetworkGetEntityFromNetworkId(netId)

-- always works, by hash
local retval = Citizen.InvokeNative(0xCE4E5D9B0A4FF560, netId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkGetEntityFromNetworkId(netId);

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

Sources

alloc8or RDR3 NativeDB

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