Skip to Content

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)
FieldWhat it is
estado"livre" with no night; during a night: "contagem" (countdown), "ativa" (running) or "pausada" (paused)
idnight id
presetpreset name
restanteseconds left in the night
restanteContagemseconds left in the invite
duracaototal duration, in seconds
inscritoshow many accepted the invite
dentrohow many are in the night now
agendadainicio, 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)