feat: can now refill tank at any oxygen level, but cannot fill underwater
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ local function disableScuba()
|
|||||||
end
|
end
|
||||||
|
|
||||||
lib.callback.register('qbx_divegear:client:fillTank', function()
|
lib.callback.register('qbx_divegear:client:fillTank', function()
|
||||||
if oxygenLevel ~= 0 then
|
if IsPedSwimmingUnderWater(cache.ped) then
|
||||||
exports.qbx_core:Notify(Lang:t("error.oxygenlevel", {oxygenlevel = oxygenLevel}), 'error')
|
exports.qbx_core:Notify(Lang:t("error.underwater", {oxygenlevel = oxygenLevel}), 'error')
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ local Translations = {
|
|||||||
canceled = "Canceled",
|
canceled = "Canceled",
|
||||||
not_standing_up = "You need to be on solid ground to put this on...",
|
not_standing_up = "You need to be on solid ground to put this on...",
|
||||||
need_otube = "you need to refill your oxygen! Get a replacement air supply!",
|
need_otube = "you need to refill your oxygen! Get a replacement air supply!",
|
||||||
oxygenlevel = "Your air level is %{oxygenlevel}, it must be at 0 to refill!",
|
underwater = "Cannot do this underwater",
|
||||||
},
|
},
|
||||||
success = {
|
success = {
|
||||||
took_out = "You took your diving gear off.",
|
took_out = "You took your diving gear off.",
|
||||||
|
|||||||
Reference in New Issue
Block a user