New functionality: GetRoutingBucketPlayers, GetOccupiedRoutingBuckets

Hi fellow FiveM scripters/developers,

I recently started to work with RoutingBuckets ( great for missions with a group etc… ) and noticed that there is no way to track how many players are in a routing bucket.

Currently to keep track of the count is making your own counting functionality…

It would be cool to add a new function like GetRoutingBucketPlayers(bucket_id) and ‘GetOccupiedRoutingBuckets()’

GetOccupiedRoutingBuckets - return a list of bucket id’s
GetRoutingBucketPlayers - returns a list of player id’s

Kind Regards,
Rob

1 Like

I think Charles hacks has a video on this which is pretty in-depth:

We’ll I know about this video already, this topic is based on a new feature request which would eliminate adding your own functionality to check if players are in X bucket and how many players are in X bucket.

I found a similar Pull Request in github from 2022: feat(server/impl): routing bucket entity and player getters by BerkieBb · Pull Request #1656 · citizenfx/fivem · GitHub