Config
axeVip config file example
Config File
Config = {}
Config.AdminPermissions = { "admin", "god" }
Config.Framework = "qbox" -- "qb" or "esx" or "qbox"
Config.Inventory = "ox" -- "ox"
Config.Target = "ox" -- "ox"
Config.Commands = {
["CREATE_VIP"] = "createvip",
["REDEEM_VIP"] = "redeem",
["REMOVE_VIP"] = "removevip",
}
Config.VipCurrency = "coins"
Config.VipSalary = {
enabled = true, -- If you want vip salary feature enabled or not
paymentInterval = 30, -- Payment interval in minutes
}
Config.Packages = {
["example"] = {
redeemRewards = {
{ type = "item", name = "burger", count = 5 },
{ type = "currency", currencyType = "bank", amount = 500 },
{ type = "currency", currencyType = "coins", amount = 50 },
{ type = "penthouse", penthouseType = "penthouse_example" },
},
perks = {
inventory = {
slots = 50,
weight = 100000,
},
salaryVipAmount = 10000,
},
},
}
Config.Penthouses = {
["penthouse_example"] = {
locations = {
{
type = "wardbrode",
label = "Open Wardrobe",
coords = vec3(2201.73, 5600.28, 53.84),
},
{
type = "entrance",
label = "Enter in penthouse",
coords = vec3(2201.73, 5600.28, 53.84),
coordsToTeleport = vec3(2210.33, 5592.28, 53.83),
},
{
type = "exit",
label = "Leave penthouse",
coords = vec3(2210.33, 5592.28, 53.83),
coordsToTeleport = vec3(2201.73, 5600.28, 53.84),
},
{
type = "stash",
label = "Open Stash",
stashLabel = "Penthouse Example Stash",
coords = vec3(2210.33, 5592.28, 53.83),
weight = 50000,
slots = 50,
},
},
},
}
---@param title string
---@param description string
---@param type? 'error'|'info'|'success'|'warning'
---@param duration? integer
function Notify(title, description, type, duration)
duration = duration or 5000
lib.notify({
title = title,
description = description,
type = type,
duration = duration,
})
end
-- ____ ___ _ _ _____ _____ ___ _ _ ____ _ _
-- | _ \ / _ \| \ | |_ _| |_ _/ _ \| | | |/ ___| | | |
-- | | | | | | | \| | | | | || | | | | | | | | |_| |
-- | |_| | |_| | |\ | | | | || |_| | |_| | |___| _ |
-- |____/ \___/|_| \_|_|_|_ |_| \___/ \___/ \____|_| |_|
-- | __ )| ____| | / _ \ \ / /
-- | _ \| _| | | | | | \ \ /\ / /
-- | |_) | |___| |__| |_| |\ V V /
-- |____/|_____|_____\___/ \_/\_/
function GetTranslation(translationKey)
return Locale[translationKey:upper()] or translationKey:upper()
end
Last updated