Skip to content

Commit

Permalink
fix: allow progress bar underwater and require ox_lib v3.20.0
Browse files Browse the repository at this point in the history
* Update main.lua

fixed the sell of coral feature

* Update README.md

added ox_lib changes to make underwater progress bar feature to work

* Update README.md

* Update main.lua

added allowSwimming = true, to progress bar function for coral collection.

* Update main.lua

* dependency checking

---------

Co-authored-by: Manason <clanerp@gmail.com>
  • Loading branch information
IN1GHTM4R3 and Manason authored Apr 21, 2024
1 parent 6ade5cf commit 9f427ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ local function takeCoral(coralIndex)
label = Lang:t('info.collecting_coral'),
canCancel = true,
useWhileDead = false,
allowSwimming = true,
disable = {
move = true,
car = true,
Expand Down
3 changes: 3 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
lib.versionCheck('Qbox-project/qbx_diving')
assert(lib.checkDependency('ox_lib', '3.20.0', true))

local config = require 'config.server'
local sharedConfig = require 'config.shared'
local currentAreaIndex = math.random(1, #sharedConfig.coralLocations)
Expand Down

0 comments on commit 9f427ea

Please sign in to comment.