Skip to content

Commit

Permalink
fear: add debug mode to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Nov 8, 2023
1 parent c02b26a commit 0fbc04b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ local function setDivingLocation(divingLocation)
coords = v.coords,
rotation = v.boxDimensions.w,
size = v.boxDimensions.xyz,
debug = Config.Debug,
options = {
{
label = Lang:t("info.collect_coral"),
Expand All @@ -135,6 +136,7 @@ local function setDivingLocation(divingLocation)
coords = v.coords,
rotation = v.boxDimensions.w,
size = v.boxDimensions.xyz,
debug = Config.Debug,
onEnter = function()
currentArea = k
lib.showTextUI(Lang:t("info.collect_coral_dt"))
Expand Down Expand Up @@ -195,6 +197,7 @@ local function createSeller()
coords = current.coords.xyz,
rotation = current.coords.w,
size = current.zoneDimensions,
debug = Config.Debug,
onEnter = function()
lib.showTextUI(Lang:t("info.sell_coral_dt"))
end,
Expand Down
1 change: 1 addition & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Config = {}
Config.UseTarget = GetConvar('UseTarget', 'false') == 'true' -- Use qb-target interactions (don't change this, go to your server.cfg and add `setr UseTarget true` to use this and just that from true to false or the other way around)
Config.CopsChance = 0.5 -- The chance of the cops getting called when a coral gets picked up, this ranges from 0.0 to 1.0
Config.OxygenLevel = 100 -- in seconds
Config.Debug = false -- shows outline of box zones

---@class Coral
---@field coords vector3
Expand Down

0 comments on commit 0fbc04b

Please sign in to comment.