GET_PLAYER_ROUTING_BUCKET
Gets the routing bucket for the specified player.
Signature
int GET_PLAYER_ROUTING_BUCKET(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player to get the routing bucket for. |
Returns int — The routing bucket ID.
Description
Gets 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
local retval = GetPlayerRoutingBucket(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0x52441c34, playerSrc, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerRoutingBucket(playerSrc);
// by hash
const retval = Citizen.invokeNative('0x52441c34', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x52441c34, playerSrc);See also
SET_PLAYER_ROUTING_BUCKETSets the routing bucket for the specified player.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.