Server exports
JogadorNaPurga
---@param source number
---@return boolean -- true if this player is inside the night
local inside = exports.gui_noitedocrime:JogadorNaPurga(source)EstadoDaNoite
---@return table
local s = exports.gui_noitedocrime:EstadoDaNoite()
print(s.estado, s.inscritos, s.dentro)| Field | What it is |
|---|---|
estado | "livre" with no night; during a night: "contagem" (countdown), "ativa" (running) or "pausada" (paused) |
id | night id |
preset | preset name |
restante | seconds left in the night |
restanteContagem | seconds left in the invite |
duracao | total duration, in seconds |
inscritos | how many accepted the invite |
dentro | how many are in the night now |
agendada | inicio, quando and preset of the next scheduled night, or nil |
AbrirPainel
---@param source number
---@return boolean -- false if the player has no permission
exports.gui_noitedocrime:AbrirPainel(source)