SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE
Sets the entity lockdown mode for a specific routing bucket.
Signature
void SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE(int bucketId, char* mode);Parameters
| Name | Type | Description |
|---|---|---|
bucketId | int | The routing bucket ID to adjust. |
mode | char* | One of aforementioned modes. |
Returns void
Description
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
SetRoutingBucketEntityLockdownMode(bucketId, mode)
-- always works, by hash
Citizen.InvokeNative(0xa0f2201f, bucketId, mode)JavaScript and C#
SetRoutingBucketEntityLockdownMode(bucketId, mode);
// by hash
Citizen.invokeNative('0xa0f2201f', bucketId, mode);Function.Call((Hash)0xa0f2201f, bucketId, mode);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.