Returns a record of basic information for each slot.
Slot information is shared across each team. For accessing player data, see PlayersManager.
Attempt to find a player by their team or slot name.
The slot id associated with the searched player.
Optionalteam: numberThe team id associated with the searched player. If omitted, defaults to the team of the client player.
The player's metadata or undefined if not found.
Removes an existing event listener.
The event name associated with this listener to remove.
The callback function to remove.
Rest...args: PlayerEvents[Event]This object.
Add an event listener for a specific event.
The event name to listen for.
The callback function to fire when this event is received.
Rest...args: PlayerEvents[Event]This object.
Returns a promise that waits for a single specified event to be received. Resolves with the list of arguments dispatched with the event.
The event name to listen for.
An optional predicate to check on incoming events to validate if the correct event has been received. If omitted, will return immediately on next event type received.
Rest...args: PlayerEvents[Event]
Manages tracking and updating all players in the room session.