Buckets
Defines and manages routing buckets used for world separation. This module controls spawn points, access rules, and routing settings for different areas.
Each bucket entry supports fine-grained control over access and world behaviour, making it easy to build layered and modular gameplay systems.
Bucket Configuration
get_bucket
Returns the full config for a given bucket ID.
Parameters
id
(string): The bucket ID.
Returns
table|nil
: Bucket config if found, nil otherwise.
get_bucket_by_label
Returns a bucket config matching a label (case-insensitive).
Parameters
label
(string): The label to search.
Returns
table|nil
: Matching config or nil.
get_spawn_point
Returns the spawn position for a bucket.
Parameters
id
(string): The bucket ID.
Returns
vector4|nil
: Spawn location or nil.
get_respawn_point
Returns the respawn position for a bucket.
Parameters
id
(string): The bucket ID.
Returns
vector4|nil
: Respawn location or nil.
is_staff_only
Checks if the bucket is restricted to specific staff roles.
Parameters
id
(string): The bucket ID.role
(string): The role to verify.
Returns
boolean
: True if restricted.
is_vip_only
Checks if a player’s VIP level is allowed into the bucket.
Parameters
id
(string): The bucket ID.vip_level
(number): The player’s VIP level.
Returns
boolean
: True if VIP level is insufficient.
apply_routing_settings
Applies entity lockdown and population rules to all buckets.
Returns
void
Last updated