Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

data.PlayerDocuments

Each player's document, loaded before players.joined fires, saved when they leave and every minute while it changes.

Methods

playerDocuments:get(player: types.Player) -> T
#

the player's document, a plain table whose changes are saved; inside a live function it is a read-only view that redraws what read a field when that field changes: index it, take # and loop with for k, v in t, since ipairs, pairs and the table library raise on it