RedM Natives

SET_PLAYER_ROUTING_BUCKET

Sets the routing bucket for the specified player.

Hash0x6504EB38
Runtime nameSetPlayerRoutingBucket
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_PLAYER_ROUTING_BUCKET(char* playerSrc, int bucket);

Parameters

NameTypeDescription
playerSrcchar*

The player to set the routing bucket for.

bucketint

The bucket ID.

Returns void

Description

Cfx.re native reference

Sets the routing bucket for the specified player.

Routing buckets are also known as 'dimensions' or 'virtual worlds' in past echoes, however they are population-aware.

Usage

Lua
SetPlayerRoutingBucket(playerSrc, bucket)

-- always works, by hash
Citizen.InvokeNative(0x6504eb38, playerSrc, bucket)
JavaScript and C#
JavaScript
SetPlayerRoutingBucket(playerSrc, bucket);

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

See also

Sources

Cfx.re native reference

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