Configuration
Main
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:
| Topic | Options |
|---|---|
| Permission and commands | Config.permissaoAdmin, Config.gruposAdmin, Config.acePermissao, Config.comandos. See Admin panel. |
| Invite keys | Config.tecla (default Y accepts, N declines). |
| Items | Config.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 inventory | Config.naoGuardar. Comes with money and black_money. |
| Bases and airdrops | Config.basesCura, Config.basesMunicao, Config.pontosAirdrop. |
| Plane and crate | Config.aviao |
| Event vehicles | Config.veiculos |
| Map icons | Config.blips |
| Respawn | Config.renascer, Config.pontosRenascer |
| Blackout | Config.regioesApagao |
| Opening | Config.abertura (the “live broadcast” card with your audio) |
| Invite | Config.textos and Config.regras |
| Running and stamina during the night | Config.corrida |
| Security | Config.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:
| File | When it plays |
|---|---|
html/audio/vinheta.wav | beep before the opening |
html/audio/fim.mp3 | with 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.
| Type | What it sends |
|---|---|
preset | preset created, edited, duplicated and removed |
noite | schedule, cancel, start, pause, end and results |
inscritos | who accepted or declined, and the list locked at the start |
inventario | each player’s inventory stored and returned |
premios | prizes paid at the end of the night |
admin | admin commands (add and remove player, return inventory) |
alerta | denied or suspicious attempts and failures |
Webhooks.cidade is the name in the footer of each message. Webhooks.icone is an optional image link.
Webhooks = {
cidade = "Your city",
icone = "",
noite = "https://discord.com/api/webhooks/...",
alerta = "https://discord.com/api/webhooks/...",
-- ...
}