SET_ENTITY_ROUTING_BUCKET
Sets the routing bucket for the specified entity.
Signature
void SET_ENTITY_ROUTING_BUCKET(Entity entity, int bucket);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to set the routing bucket for. |
bucket | int | The bucket ID. |
Returns void
Description
Sets 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
SetEntityRoutingBucket(entity, bucket)
-- always works, by hash
Citizen.InvokeNative(0x635e5289, entity, bucket)JavaScript and C#
SetEntityRoutingBucket(entity, bucket);
// by hash
Citizen.invokeNative('0x635e5289', entity, bucket);Function.Call((Hash)0x635e5289, entity, bucket);See also
GET_ENTITY_ROUTING_BUCKETGets the routing bucket for the specified entity.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.