create
Creates a detached player entity.
Syntax
engine.players.create(playerId);
Parameters
Name | Type | Description |
---|---|---|
playerId | number | The player ID |
Returns
PlayerManager
- The player manager
Example
const player = engine.players.create(1212);
const banStatus = await player.getBanStatus();
console.log('Is banned:', banStatus.banned);
Available on: Client Server