A wrong PIN now only locks that specific safe, so the player can still try opening other safes. Also surfaces remaining attempts and lock duration in the notify messages.
62 lines
2.0 KiB
Lua
62 lines
2.0 KiB
Lua
Config = {}
|
|
|
|
-- Habilita prints de debug
|
|
Config.Debug = true
|
|
|
|
-- Tempo de animação ao colocar o safe (ms)
|
|
Config.PlaceTime = 2500
|
|
|
|
-- Segurança do PIN
|
|
Config.PinMaxAttempts = 1 -- tentativas erradas de PIN antes de bloquear o jogador
|
|
Config.PinBlockTime = 30 -- segundos de bloqueio após exceder as tentativas
|
|
|
|
-- Distância máxima (metros) para abrir ou recolher um safe
|
|
Config.SafeInteractDistance = 3.0
|
|
|
|
-- Sistema de update via Gitea (ativo apenas quando Config.Debug = true)
|
|
Config.Update = {
|
|
giteaUrl = "https://gitea.zol.oixb.run", -- URL base do seu Gitea
|
|
owner = "oixb.run", -- dono/organização do repositório
|
|
repo = "0ixb-stashes", -- nome do repositório
|
|
branch = "main", -- branch a ser usada
|
|
checkCommand = "oixbupdate", -- comando para checar se há update
|
|
upgradeCommand = "oixbupgrade", -- comando para baixar e aplicar o update
|
|
files = { "server.lua", "client.lua", "config.lua", "fxmanifest.lua" }
|
|
}
|
|
|
|
-- Tipos de safes
|
|
Config.SafeTypes = {
|
|
small = {
|
|
label = "Small Safe",
|
|
prop = "prop_ld_int_safe_01", -- modelo de prop do GTA
|
|
item = "safe_small", -- item que o jogador precisa para colocar
|
|
slots = 30,
|
|
weight = 100000,
|
|
radius = 1.2
|
|
},
|
|
medium = {
|
|
label = "Medium Safe",
|
|
prop = "p_v_43_safe_s",
|
|
item = "safe_medium",
|
|
slots = 50,
|
|
weight = 250000,
|
|
radius = 1.5
|
|
},
|
|
large = {
|
|
label = "Large Safe",
|
|
prop = "xm3_prop_xm3_safe_01a",
|
|
item = "safe_large",
|
|
slots = 100,
|
|
weight = 500000,
|
|
radius = 2.0
|
|
},
|
|
dev = {
|
|
label = "Dev Safe",
|
|
prop = "m24_1_prop_m24_1_carrier_cargo_02a", -- modelo de prop do GTA
|
|
item = "safe_dev", -- item que o jogador precisa para colocar
|
|
slots = 5,
|
|
weight = 1000000,
|
|
radius = 1.0
|
|
}
|
|
}
|