From the reference libraryRedM

autodoc_server_functions

jo_libs/modules/bucket/autodoc/autodoc_server_functions.md

autodoc_server_functions

JO Functions > jo.bucket.getPlayersInBucket()

Returns the list of players in a bucket <br>

JO Functions > jo.bucket.getPlayersInBucket() > Syntax

jo.bucket.getPlayersInBucket(bucketId)

JO Functions > jo.bucket.getPlayersInBucket() > Parameters

bucketId : number

The bucket id

JO Functions > jo.bucket.getPlayersInBucket() > Return Value

Type : table

Return the list of player sources in the bucket, or an empty table if the bucket doesn't exist

Back to documentation