RedM Natives

SET_ENTITY_ROUTING_BUCKET

Sets the routing bucket for the specified entity.

Hash0x635E5289
Runtime nameSetEntityRoutingBucket
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_ENTITY_ROUTING_BUCKET(Entity entity, int bucket);

Parameters

NameTypeDescription
entityEntity

The entity to set the routing bucket for.

bucketint

The bucket ID.

Returns void

Description

Cfx.re native reference

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

Lua
SetEntityRoutingBucket(entity, bucket)

-- always works, by hash
Citizen.InvokeNative(0x635e5289, entity, bucket)
JavaScript and C#
JavaScript
SetEntityRoutingBucket(entity, bucket);

// by hash
Citizen.invokeNative('0x635e5289', entity, bucket);
C#
Function.Call((Hash)0x635e5289, entity, bucket);

See also

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.