PlayerManager
@vimp-mp/types 2.0.1Provides access to all players currently connected to the server.
ts
interface PlayerManagerMembers
all
ts
readonly all: Array<Player>Snapshot of all connected players.
count
ts
readonly count: numberNumber of currently connected players.
getById
ts
getById(id: number): Player | nullReturns the player with id, or null when it is no longer connected.