GET_ENTITY_ROUTING_BUCKET
Gets the routing bucket for the specified entity.
Signature
int GET_ENTITY_ROUTING_BUCKET(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to get the routing bucket for. |
Returns int — The routing bucket ID.
Description
Gets the routing bucket for the specified entity.
Routing buckets are also known as 'dimensions' or 'virtual worlds' in past echoes, however they are population-aware.
Usage
local retval = GetEntityRoutingBucket(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xed4b0486, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityRoutingBucket(entity);
// by hash
const retval = Citizen.invokeNative('0xed4b0486', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xed4b0486, entity);See also
SET_ENTITY_ROUTING_BUCKETSets the routing bucket for the specified entity.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.