lr_boilerplate/config.lua

32 lines
647 B
Lua
Raw Normal View History

2023-12-05 13:55:38 +07:00
Config = {}
2024-01-02 10:50:35 +07:00
2024-01-12 17:45:08 +07:00
Config.Settings = {
2024-01-02 10:50:35 +07:00
locale = {}
}
--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-01-02 10:50:35 +07:00
Config.Framework = "custom" -- "qb" | "esx" | "custom"
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