RedM Natives

SET_ROUTING_BUCKET_POPULATION_ENABLED

Sets whether or not the specified routing bucket has automatically-created population enabled.

Hash0xCE51AC2C
Runtime nameSetRoutingBucketPopulationEnabled
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_ROUTING_BUCKET_POPULATION_ENABLED(int bucketId, BOOL mode);

Parameters

NameTypeDescription
bucketIdint

The routing bucket ID to adjust.

modeBOOL

true to enable population, false to disable population.

Returns void

Description

Cfx.re native reference

Sets whether or not the specified routing bucket has automatically-created population enabled.

Usage

Lua
SetRoutingBucketPopulationEnabled(bucketId, mode)

-- always works, by hash
Citizen.InvokeNative(0xce51ac2c, bucketId, mode)
JavaScript and C#
JavaScript
SetRoutingBucketPopulationEnabled(bucketId, mode);

// by hash
Citizen.invokeNative('0xce51ac2c', bucketId, mode);
C#
Function.Call((Hash)0xce51ac2c, bucketId, mode);

Sources

Cfx.re native reference

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