tweak(client/vehicle): lockpick tries convar

This commit is contained in:
Andyyy7666
2025-01-17 20:42:27 +01:00
parent e9aafe1f2d
commit 2a263a6c2e
2 changed files with 3 additions and 2 deletions

View File

@@ -597,7 +597,7 @@ local function lockpickVehicle()
}
lib.requestAnimDict("veh@break_in@0h@p_m_one@")
for i=1, 7 do
for i=1, Config.lockpickTries do
TaskPlayAnimAdvanced(cache.ped, "veh@break_in@0h@p_m_one@", "std_force_entry_ds", pos.x, pos.y, pos.z+0.025, rot.x, rot.y, rot.z, 8.0, 8.0, 1800, 28, 0.1)
local dificulty = dificulties[math.random(1, #dificulties)]
local success = lib.skillCheck(dificulty)