NETWORK_GET_NETWORK_ID_FROM_ENTITY
Signature
int NETWORK_GET_NETWORK_ID_FROM_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Usage
local retval = NetworkGetNetworkIdFromEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9e35dab6, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetNetworkIdFromEntity(entity);
// by hash
const retval = Citizen.invokeNative('0x9e35dab6', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9e35dab6, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.