feat(config): config as a module

This commit is contained in:
FjamZoo
2023-11-14 23:00:31 -08:00
committed by GitHub
parent f6793b1c22
commit cb1a23fb50
4 changed files with 14 additions and 14 deletions
+2
View File
@@ -1,3 +1,5 @@
local Config = require 'config.client'
local currentGear = { local currentGear = {
mask = 0, mask = 0,
tank = 0, tank = 0,
-5
View File
@@ -1,5 +0,0 @@
Config = {}
Config.OxygenLevel = 100 -- in seconds
Config.PutOnSuitTimeMs = 5000
Config.TakeOffSuitTimeMs = 5000
Config.RefillTankTimeMs = 5000
+6
View File
@@ -0,0 +1,6 @@
return {
OxygenLevel = 100,
PutOnSuitTimeMs = 5000,
TakeOffSuitTimeMs = 5000,
RefillTankTimeMs = 5000
}
+4 -7
View File
@@ -10,20 +10,17 @@ shared_scripts {
'@qbx_core/shared/locale.lua', '@qbx_core/shared/locale.lua',
'locales/en.lua', 'locales/en.lua',
'locales/*.lua', 'locales/*.lua',
'config.lua',
} }
modules { modules {
'qbx_core:utils', 'qbx_core:utils',
} }
server_scripts { server_script 'server/main.lua'
'server/*',
}
client_scripts { client_script 'client/main.lua'
'client/*'
} file 'config/client.lua'
lua54 'yes' lua54 'yes'
use_experimental_fxv2_oal 'yes' use_experimental_fxv2_oal 'yes'