Configuration
config.lua
You may edit this file to your desire sk_vipshop/server/config.lua
.
Config = Config or {}
-- Basic Configuration
Config.Hotkey = 'F7' -- Hotkey to open the shop
Config.PrintDebug = true -- Prints debug messages to the console
Config.Blur = true -- Blurs the background of the shop
Config.Watermark = true -- Shows watermark in the shop
-- Webhook Configuration
Config.Webhook = {
enabled = true, -- Webhook for logging transactions (for discord logging)
url = 'https://discord.com/api/webhooks/1398297685710213211/m1wVvwYcoe1Mucj648bihvOlp6IAa5RRDbiNk6V1thhkW-8B7XHOnY5rZpgza_85DcTK',
}
-- Vehicle Configuration
Config.Vehicle = {
allowTestDrive = true, -- Enables ability to test drive vehicles via the shop
testDriveTime = 30, -- Time in seconds for test drive
defaultGarage = 'pillboxgarage', -- Default garage where purchased vehicles spawn
defaultFuel = 100, -- Default fuel level (0-100)
}
-- Shop Configuration
Config.Shop = {}
Config.Shop.Label = 'VIP Shop' -- Visible label at the top left of the shop UI
Config.Shop.CurrencySymbol = '$' -- $ or € or £ or ¥
Config.Shop.Menus = {
-- Credits Category
{
enabled = true, -- Shows or hides this category
ace_permission = '', -- Missing or nothing = anyone can access this category
label = 'Credits', -- Category name
icon = '', -- Category icon (Not implemented yet)
products = {
{
label = '100 Credits', -- Product name
value = '100_credits', -- Product value
type = 'tebex', -- Product type (tebex, item, vehicle)
amount = 100, -- Product amount
price = 15, -- Product price
image = 'https://dunb17ur4ymx4.cloudfront.net/packages/images/b7e187e8dce4fcfba3f6c2953927483df17f026f.png',
packageId = 6951133, -- Product Tebex package ID (if type is tebex)
tebexLink = 'https://kf-scripts.tebex.io/package/6951133', -- Product Tebex link (if type is tebex)
buttonLabel = 'Buy Credits'
},
{
label = '500 Credits',
value = '500_credits',
type = 'tebex',
amount = 500,
price = 75,
image = 'https://dunb17ur4ymx4.cloudfront.net/packages/images/b7e187e8dce4fcfba3f6c2953927483df17f026f.png',
packageId = 6951172,
tebexLink = 'https://kf-scripts.tebex.io/package/6951172',
buttonLabel = 'Buy Credits'
},
}
},
-- Items Category
{
enabled = true,
ace_permission = '', -- Missing or nothing = anyone can access this category
label = 'Items',
icon = '',
products = {
{
label = 'Lockpick',
value = 'lockpick',
type = 'item',
amount = 1,
price = 100,
image = '',
customFunction = function(data)
local source = data.source
local product = data.product
local price = data.price
local amount = data.amount
local balance = data.balance
print(json.encode(data))
end
},
{
label = 'Water',
value = 'water',
type = 'item',
amount = 1,
price = 10,
image = ''
},
{
label = 'Bandage',
value = 'bandage',
type = 'item',
amount = 1,
price = 10,
image = ''
}
}
},
-- Vehicles Category
{
enabled = true,
ace_permission = '', -- Missing or nothing = anyone can access this category
label = 'Vehicles',
icon = '',
products = {
{
label = 'Sunrise1',
value = 'sunrise1',
type = 'vehicle',
amount = 1,
price = 1000,
image = 'https://img.gta5-mods.com/q95/images/maibatsu-sunrise-r-add-on-tuning-liveries-sounds/086fdd-0a-min.png',
badge = 'NEW!'
},
{
label = 'Adder',
value = 'adder',
type = 'vehicle',
amount = 1,
price = 500,
image = ''
},
{
label = 'Hexer',
value = 'hexer',
type = 'vehicle',
amount = 1,
price = 1000,
image = ''
}
}
},
-- Weapons Category
{
enabled = true,
ace_permission = '', -- Missing or nothing = anyone can access this category
label = 'Weapons',
icon = '',
products = {
{
label = 'Pistol',
value = 'weapon_pistol',
type = 'item',
amount = 1,
price = 1000,
image = ''
},
{
label = 'SMG',
value = 'weapon_smg',
type = 'item',
amount = 1,
price = 500,
image = ''
},
{
label = 'RPG',
value = 'weapon_rpg',
type = 'item',
amount = 1,
price = 1000,
image = ''
}
}
},
-- Misc Category
{
enabled = true,
ace_permission = '', -- Missing or nothing = anyone can access this category
label = 'Misc',
icon = '',
products = {
{
label = 'Custom Plate',
value = 'custom_plate',
type = 'item',
amount = 1,
price = 100,
image = ''
},
{
label = 'Name Change',
value = 'name_change',
type = 'item',
amount = 1,
price = 500,
image = ''
},
}
},
-- Donators Category
{
enabled = true,
ace_permission = 'group.vip', -- Ace permission to access this category
label = 'Donators',
icon = '', -- TODO: Add icon support
products = {
{
label = 'Lockpick',
value = 'lockpick',
type = 'item',
amount = 1,
price = 500,
image = ''
},
{
label = 'Sunrise1',
value = 'sunrise1',
type = 'vehicle',
amount = 1,
price = 1000,
image = 'https://img.gta5-mods.com/q95/images/maibatsu-sunrise-r-add-on-tuning-liveries-sounds/086fdd-0a-min.png',
badge = 'NEW!'
}
}
},
}