Skip to Content
Gui. Lawless NightConfiguration

Configuration

Main

config.lua
Config.Idioma = "en" -- "pt", "en" or "es" Config.Framework = "auto" -- or "vrp", "esx", "qb", "qbox", "standalone" Config.Inventario = "auto" -- or "vrp", "ox", "qb", "esx" Config.comandoPainel = { "noitedocrime", "noite" } -- commands that open the panel Config.bucket = 9500 -- the night's own dimension Config.avisoMinimo = 5 -- minimum invite minutes before it starts Config.contaPremio = "carteira" -- cash prize goes to "carteira" (wallet) or "banco" (bank)

No other script may use the same Config.bucket number.

The rest of the config

Top to bottom:

TopicOptions
Permission and commandsConfig.permissaoAdmin, Config.gruposAdmin, Config.acePermissao, Config.comandos. See Admin panel.
Invite keysConfig.tecla (default Y accepts, N declines).
ItemsConfig.itens.municaoBase (what the ammo base gives to players without a weapon), Config.kitPadrao and Config.lootPadrao (kit and loot for new presets). Empty = your inventory’s defaults.
Items that never leave the inventoryConfig.naoGuardar. Comes with money and black_money.
Bases and airdropsConfig.basesCura, Config.basesMunicao, Config.pontosAirdrop.
Plane and crateConfig.aviao
Event vehiclesConfig.veiculos
Map iconsConfig.blips
RespawnConfig.renascer, Config.pontosRenascer
BlackoutConfig.regioesApagao
OpeningConfig.abertura (the “live broadcast” card with your audio)
InviteConfig.textos and Config.regras
Running and stamina during the nightConfig.corrida
SecurityConfig.distanciaMaximaKill

Config.basesCura, Config.basesMunicao and Config.pontosAirdrop only apply on the first start. After that everything is done in the panel (Places tab) and stored in the database.

Why Config.naoGuardar: in ox_inventory money is an item. Without this list, the player’s money would drop to the ground when they died during the night. It does not apply to vRP.

Balancing

Duration, kit, airdrops, loot, respawn, points, target, events, prizes and weather are not in the config. They live in presets, built in the panel.

Opening audio

The package ships with two sounds:

FileWhen it plays
html/audio/vinheta.wavbeep before the opening
html/audio/fim.mp3with the results screen (Config.audioFim)

The opening audio is not included. Put yours at html/audio/anuncio.mp3 or change the name in Config.abertura.arquivo. Accepts .mp3, .ogg and .wav.

Without the file, the “live broadcast” card shows for a few seconds in silence and goes away.

Config.abertura.soundcloud plays through SoundCloud’s official embed player. Players need internet access.

Only use audio you have the right to use.

Webhooks

Only the server reads webhooks.lua. Paste a Discord URL for each type; empty = off. You can use the same URL for all of them.

TypeWhat it sends
presetpreset created, edited, duplicated and removed
noiteschedule, cancel, start, pause, end and results
inscritoswho accepted or declined, and the list locked at the start
inventarioeach player’s inventory stored and returned
premiosprizes paid at the end of the night
adminadmin commands (add and remove player, return inventory)
alertadenied or suspicious attempts and failures

Webhooks.cidade is the name in the footer of each message. Webhooks.icone is an optional image link.

webhooks.lua
Webhooks = { cidade = "Your city", icone = "", noite = "https://discord.com/api/webhooks/...", alerta = "https://discord.com/api/webhooks/...", -- ... }