Skip to content

PlayerManager

@vimp-mp/types 2.0.1

Interface · Server API

Provides access to all players currently connected to the server.

ts
interface PlayerManager

Members

all

ts
readonly all: Array<Player>

Snapshot of all connected players.

count

ts
readonly count: number

Number of currently connected players.

getById

ts
getById(id: number): Player | null

Returns the player with id, or null when it is no longer connected.

VIMP developer documentation