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