NETWORK_GET_ENTITY_FROM_NETWORK_ID
Hash
0xCE4E5D9B0A4FF560Runtime name
NetworkGetEntityFromNetworkIdNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xCE4E5D9B0A4FF560Signature
Entity NETWORK_GET_ENTITY_FROM_NETWORK_ID(int netId);Parameters
| Name | Type | Description |
|---|---|---|
netId | int | — |
Returns Entity
Usage
local retval = NetworkGetEntityFromNetworkId(netId)
-- always works, by hash
local retval = Citizen.InvokeNative(0xCE4E5D9B0A4FF560, netId, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetEntityFromNetworkId(netId);
// by hash
const retval = Citizen.invokeNative('0xCE4E5D9B0A4FF560', netId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xCE4E5D9B0A4FF560, netId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.