lr_boilerplate/config.lua

36 lines
833 B
Lua
Raw Normal View History

2023-12-05 13:55:38 +07:00
Config = {}
2024-01-02 10:50:35 +07:00
2024-02-24 09:53:57 +07:00
Config.Dependencies = {} -- Reqired resources loaded to start
2024-04-09 12:44:56 +07:00
Config.Locale = 'vi'
2024-02-24 09:53:57 +07:00
2024-01-12 17:45:08 +07:00
Config.Settings = {
2024-04-09 12:44:56 +07:00
locale = Locales[Config.Locale] or Locales['default']
2024-01-02 10:50:35 +07:00
}
--Dont touch this
2023-12-10 04:48:31 +07:00
Config.EnableModules = {
2023-12-13 00:21:40 +07:00
["Newbie"] = {
enabled = true,
client = true, -- enable client side
2024-01-02 10:50:35 +07:00
priority = 1, -- 1 : init on start | 2 : init on player loaded
2023-12-13 00:21:40 +07:00
},
["Test"] = {
enabled = true,
priority = 2, -- 1 : init on start | 2 : init on player loaded
},
2023-12-10 04:48:31 +07:00
}
Config.Debug = true
2023-12-11 14:13:07 +07:00
Config.Nui = false
2023-12-11 15:06:29 +07:00
Config.Dev = false
2024-04-11 15:31:34 +07:00
---@type "qb" | "esx" | "ProjectStarboy" | "standalone"
Config.Framework = "standalone" -- "qb" | "esx" | "custom"
2024-01-02 10:50:35 +07:00
Config.ClientLazyLoad = false
2024-01-12 17:45:08 +07:00
function L(key, ...)
if Config.Settings.locale[key] then
return string.format(Config.Settings.locale[key], ...)
else
return key
end
end