RedM Natives

SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE

Sets the entity lockdown mode for a specific routing bucket.

Hash0xA0F2201F
Runtime nameSetRoutingBucketEntityLockdownMode
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE(int bucketId, char* mode);

Parameters

NameTypeDescription
bucketIdint

The routing bucket ID to adjust.

modechar*

One of aforementioned modes.

Returns void

Description

Cfx.re native reference

Sets the entity lockdown mode for a specific routing bucket.

Lockdown modes are:

Mode Meaning
strict No entities can be created by clients at all.
relaxed Only script-owned entities created by clients are blocked.
inactive Clients can create any entity they want.

Usage

Lua
SetRoutingBucketEntityLockdownMode(bucketId, mode)

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

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

Sources

Cfx.re native reference

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