feat: variable decay time oxygen timer (#17)

This commit is contained in:
Justin Furnas
2025-07-12 15:55:47 +02:00
committed by GitHub
parent 0f7fbc3595
commit b5fdb3a8f9
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ local function startOxygenLevelDecrementerThread()
CreateThread(function()
while currentGear.enabled do
if IsPedSwimmingUnderWater(cache.ped) and oxygenLevel > 0 then
oxygenLevel -= 1
oxygenLevel -= config.decayRate
if oxygenLevel % 10 == 0 and oxygenLevel ~= config.startingOxygenLevel then
-- Initiate breathing suit audio
end
@@ -167,4 +167,4 @@ RegisterNetEvent('qbx_divegear:client:useGear', function()
else
putOnSuit()
end
end)
end)