Configuration
Everything is in config.lua.
| Key | What it does |
|---|---|
Config.Idioma | "pt", "en" or "es". Texts in locales/. |
Config.Framework | "auto" detects. To force: "vrp", "esx", "qbcore", "qbox", "standalone". |
Config.pecas | Turns each part on and off: notificacao, itens, progresso, habilidade. |
Config.posicao.notificacao | "direita-topo" (top right), "esquerda-topo" (top left), "direita-baixo" (bottom right), "esquerda-baixo" (bottom left). |
Config.posicao.margemVertical / margemLado | Distance from the edge, in rem (1 rem = 16 px at 1080p). |
Config.posicao.itens | "baixo" (bottom) or "topo" (top). |
Config.posicao.progresso | "baixo", "centro" (center) or "topo". |
Config.notificacao | tempoPadrao (ms), maximo on screen, som. |
Config.tipos | Color and icon per type. Icons: ok, x, alerta, info, item, estrela. |
Config.tipoPadrao | Type used when an unknown type arrives. |
Config.apelidos | Other type names mapped to ours (success, error, primary…). |
Config.itens | imagem ("auto" or a path with %s), tempo, maximo, som, automatico. |
Config.progresso | som, teclaCancelar (73 = X). |
Config.habilidade | Skill check keys, sound and difficulties. |
Config.pontes | Answer for other resources. See Bridges. |
Config.comandoTeste | Test command name (nil = no command). |
Notification types
sucesso (success), negado (denied), aviso (warning), informacao (info), importante (important), usar (use).
Also accepts success, error, warning, info, inform, primary and the others in Config.apelidos.
config.lua
Config.tipos = {
sucesso = { cor = "#9BE3B5", icone = "ok" },
negado = { cor = "#FF6B7A", icone = "x" },
-- ...
}To fix a type’s title regardless of language:
config.lua
Config.tipos.sucesso.titulo = "Done"Skill check
config.lua
Config.habilidade = {
teclas = { "E" }, -- one is picked per round. Allowed: E, Q, R, G, H, X, Z
som = true,
texto = nil, -- nil = language text. "" = no text.
-- dificuldades = { ... }
}