Hosting & infrastructure

Routing buckets

Also called instances, dimensions, virtual worlds

OneSync's way of splitting players and entities into separate virtual worlds on one server, used for instances, apartments and character selection.

Routing buckets divide the server into separate worlds that share the same map. Players and entities in bucket 0 cannot see or interact with those in bucket 5, even if they stand in the same spot. The feature requires OneSync.

The core natives are server-side: SetPlayerRoutingBucket and SetEntityRoutingBucket move things between buckets, and GetPlayerRoutingBucket reads the current one. Each bucket can be configured separately, for example SetRoutingBucketPopulationEnabled to turn off ambient traffic and peds, and SetRoutingBucketEntityLockdownMode to apply entity lockdown per bucket.

Common uses on roleplay servers:

  • Character selection. The multicharacter screen puts each player in their own bucket so they do not see others while choosing.
  • Instanced interiors. Apartments and houses that share one interior but must be private to each owner.
  • Events and tests. A race or a staff test area that should not collide with normal play.

The usual bugs come from forgetting to move the player back. A player stuck in a non-zero bucket sees an empty world, and their reports sound like a server crash. Any script that changes buckets should restore bucket 0 on disconnect, on resource stop and when the activity ends.

Vehicles spawned for a player in one bucket must be moved too, or the player arrives back in the main world without the car they were driving. Logging bucket changes during the first weeks of a new script is cheap insurance.

Related terms

Trying to get your server seen?

The live leaderboard shows what the numbers look like at the top of the list, and the upvote calculator turns a target server into a campaign size. The full glossary is here.