Config
Config File
Config, Locales = {}, {}
-- The locale you want to use
Config.Locale = "en"
-- If you want to create SQL table automatically
Config.AutoCreateSQL = true
-- Just change this if you know what you doing / https://www.lua.org/pil/22.1.html
Config.DateTimeFormat = "%d/%m/%Y %H:%M"
Config.CommandToCloseNUI = "closejobmanagement"
Config.NoGang = "none"
Config.NoJob = "unemployed"
-- Jobs allowed to use job management panel
Config.Jobs = {
["mechanic"] = {
openLabel = "Open Mechanic Management", -- Text to show on target to open management menu
coords = vec3(-1146.7, -2002.69, 13.18), -- Coords to put management menu, put false if you want to just open trough exports
enabled = true, -- If this job is enabled
bossStashId = "mechanicBossStash" -- Boss stash id where daily goal items will go
}
}
-- Gangs allowed to use job management panel
Config.Gangs = {
-- ["example"] = {
-- openLabel = "Open Mechanic Management", -- Text to show on target to open management menu
-- coords = vec3(-1146.7, -2002.69, 13.18), -- Coords to put management menu, put false if you want to just open trough exports
-- enabled = true, -- If this job is enabled
-- bossStashId = "mechanicBossStash" -- Boss stash id where daily goal items will go
-- }
}
-- Items that jobs or gangs can put in daily goals
Config.AllowedDailyGoalItems = {
["phone"] = true,
["burger"] = true
}
---Notify function
---@param message string
---@param type 'error'|'info'|'success'|'warning'?
---@param duration any
function Notify(message, type, duration)
lib.notify({
description = message,
type = type,
duration = duration or 5000
})
end
-- _____ ____ _ __ __ _______ _____ ____ _ __
-- | ___| _ \ / \ | \/ | ____\ \ / / _ \| _ \| |/ /
-- | |_ | |_) | / _ \ | |\/| | _| \ \ /\ / / | | | |_) | ' /
-- | _| | _ < / ___ \| | | | |___ \ V V /| |_| | _ <| . \
-- |_| |_| \_\/_/ \_\_| |_|_____| \_/\_/ \___/|_| \_\_|\_\
-- Change here the name of your framework resource if is custom or dont touch
Config.FrameworkQBXResourceName = "qbx_core"
Config.FrameworkQBResourceName = "qb-core"
-- Dont touch below, it will auto detect what framework you use
if GetResourceState(Config.FrameworkQBXResourceName) == "started" then
Config.Framework = "qbx"
elseif GetResourceState(Config.FrameworkQBResourceName) == "started" then
Config.Framework = "qb"
end
ox_inventory Stash Example
{
coords = vec3(-1155.88, -2000.11, 13.18),
target = {
loc = vec3(-1155.88, -2000.11, 13.18),
length = 5.2,
width = 5.6,
heading = 0,
minZ = 5.73,
maxZ = 15.73,
label = 'Open Mechanic Boss Stash'
},
name = 'mechanicBossStash',
label = 'Mechanic Boss Stash',
owner = false,
slots = 70,
weight = 70000,
groups = { ['mechanic'] = 4 }
},
Last updated