Skip to content

Commit

Permalink
refactor: move to config/shared
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Aug 19, 2024
1 parent acc885b commit ad32a4c
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bridge/qb/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'bridge.qb.server.debug'
require 'bridge.qb.server.events'

local convertItems = require 'bridge.qb.shared.compat'.convertItems
convertItems(require '@ox_inventory.data.items', require 'data.items')
convertItems(require '@ox_inventory.data.items', require 'config.shared.items')

qbCoreCompat = {}

Expand Down
4 changes: 2 additions & 2 deletions client/groups.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local jobs = require 'data.jobs'
local gangs = require 'data.gangs'
local jobs = require 'config.shared.jobs'
local gangs = require 'config.shared.gangs'

---@return table<string, Job>
function GetJobs()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions server/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ GroupType = {
}

---@type table<string, Job>
local jobs = require 'data.jobs'
local jobs = require 'config.shared.jobs'

---@type table<string, Gang>
local gangs = require 'data.gangs'
local gangs = require 'config.shared.gangs'

---Adds or overwrites jobs in shared/jobs.lua
---@param newJobs table<string, Job>
Expand Down
6 changes: 3 additions & 3 deletions shared/main.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local qbShared = {}
qbShared.ForceJobDefaultDutyAtLogin = true -- true: Force duty state to jobdefaultDuty | false: set duty state from database last saved
qbShared.Locations = require 'data.locations'
qbShared.Vehicles = require 'data.vehicles'
qbShared.Weapons = require 'data.weapons'
qbShared.Locations = require 'config.shared.locations'
qbShared.Vehicles = require 'config.shared.vehicles'
qbShared.Weapons = require 'config.shared.weapons'

---@type table<number, Vehicle>
qbShared.VehicleHashes = {}
Expand Down

0 comments on commit ad32a4c

Please sign in to comment.