NETWORK_GET_ENTITY_FROM_NETWORK_ID
Signature
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(0x5b912c3f, netId, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetEntityFromNetworkId(netId);
// by hash
const retval = Citizen.invokeNative('0x5b912c3f', netId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x5b912c3f, netId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.