Configuration
SHARED
Don't touch the first line
Config, Lang, Noti, CC = {}, {}, {}, {}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
-- $$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|\_$$ _|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
-- $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
-- $$ | $$ | $$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$\ $$ | $$ |$$$$$$$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
-- $$ | $$ | $$ |$$ \$$$$ |$$ __| $$ | $$ |\_$$ |$$ | $$ |$$ __$$< $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
-- $$ | $$\ $$ | $$ |$$ |\$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
-- \$$$$$$ | $$$$$$ |$$ | \$$ |$$ | $$$$$$\ \$$$$$$ |\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
-- \______/ \______/ \__| \__|\__| \______| \______/ \______/ \__| \__|\__| \__| \__| \______| \______/ \__| \__|
-- Use "esx" or "qb"
Config.Framework = "qb"
-- If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = "es_extended"
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- If you want to use the target system, set it to true
Config.useTarget = true
-- If you want to use the draw text when you don't use target, set it to true
Config.useDrawText = true
-- Draw text font. For chinese characters use 0
Config.alertTextFont = 4
-- $$$$$$$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$\
-- $$ __$$\ $$ | \_$$ _|$$ __$$\ $$ __$$\
-- $$ | $$ |$$ | $$ | $$ | $$ |$$ / \__|
-- $$$$$$$\ |$$ | $$ | $$$$$$$ |\$$$$$$\
-- $$ __$$\ $$ | $$ | $$ ____/ \____$$\
-- $$ | $$ |$$ | $$ | $$ | $$\ $$ |
-- $$$$$$$ |$$$$$$$$\ $$$$$$\ $$ | \$$$$$$ |
-- \_______/ \________|\______|\__| \______/
-- If you want to use blips, set it to true
Blips = {
["LTD"] = {
useBlips = true,
blip = 59,
blipColor = 15,
blipScale = 0.7,
blipText = "Store"
},
["24/7"] = {
useBlips = true,
blip = 59,
blipColor = 15,
blipScale = 0.7,
blipText = "Store"
},
["Liquor"] = {
useBlips = true,
blip = 93,
blipColor = 15,
blipScale = 0.7,
blipText = "Liquor"
}
}
-- $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\
-- $$ | $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ _____|
-- $$ | $$ / $$ |$$$$\ $$ |$$ / \__|$$ | $$ |$$ / $$ |$$ / \__|$$ |
-- $$ | $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ | $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\
-- $$ | $$ __$$ |$$ \$$$$ |$$ |\_$$ |$$ | $$ |$$ __$$ |$$ |\_$$ |$$ __|
-- $$ | $$ | $$ |$$ |\$$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |
-- $$$$$$$$\ $$ | $$ |$$ | \$$ |\$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$$$$$$$\
-- \________|\__| \__|\__| \__| \______/ \______/ \__| \__| \______/ \________|
Lang.NoMoney = "You don't have enough money"
Lang.NoItems = "You don't have enough items in cart"
Lang.purchase = "The purchase has been successfully completed"
Lang.openSection = "Press ~f~E~w~ to open "
-- $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\
-- $$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ _____|\_$$ _|$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\
-- $$$$\ $$ |$$ / $$ | $$ | $$ | $$ | $$ | $$ / \__|$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__|
-- $$ $$\$$ |$$ | $$ | $$ | $$ | $$$$$\ $$ | $$ | $$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\
-- $$ \$$$$ |$$ | $$ | $$ | $$ | $$ __| $$ | $$ | $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\
-- $$ |\$$$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ | $$\ $$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ |
-- $$ | \$$ | $$$$$$ | $$ | $$$$$$\ $$ | $$$$$$\ \$$$$$$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ |
-- \__| \__| \______/ \__| \______|\__| \______| \______/ \__| \__| \__| \______| \______/ \__| \__| \______/
function notifications(notitype, message, time)
-- Change this trigger for your notification system keeping the variables
TriggerEvent('codem-notification', message, time, notitype)
end
-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
-- Notification time:
Noti.time = 5000
-- $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
-- $$ __$$\ $$$\ $$ |\_$$ _|$$$\ $$$ |$$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
-- $$ / $$ |$$$$\ $$ | $$ | $$$$\ $$$$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
-- $$$$$$$$ |$$ $$\$$ | $$ | $$\$$\$$ $$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
-- $$ __$$ |$$ \$$$$ | $$ | $$ \$$$ $$ |$$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
-- $$ | $$ |$$ |\$$$ | $$ | $$ |\$ /$$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
-- $$ | $$ |$$ | \$$ |$$$$$$\ $$ | \_/ $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
-- \__| \__|\__| \__|\______|\__| \__|\__| \__| \__| \______| \______/ \__| \__|
-- Set to false if you don't want to use animations when picking up items
CC.useAnimation = true
-- Animation dictionary
CC.Animationdict = "mp_common"
-- Animation name
CC.Animationname = "givetake1_a"
-- Set to false if you don't want to use props when picking up items
CC.useProp = true
-- Prop name
CC.propName = "prop_carrier_bag_01"
-- $$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$$\
-- \__$$ __|$$ __$$\ $$ __$$\ $$ __$$\ $$ _____|\__$$ __|
-- $$ | $$ / $$ |$$ | $$ |$$ / \__|$$ | $$ |
-- $$ | $$$$$$$$ |$$$$$$$ |$$ |$$$$\ $$$$$\ $$ |
-- $$ | $$ __$$ |$$ __$$< $$ |\_$$ |$$ __| $$ |
-- $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |
-- $$ | $$ | $$ |$$ | $$ |\$$$$$$ |$$$$$$$$\ $$ |
-- \__| \__| \__|\__| \__| \______/ \________| \__|
-- If you are going to use a target system you can configure it in the following function. By default it is configured to qb-target
function target(store, vector, length, width, section)
local targetName = store .. tostring(vector.x)
exports['qb-target']:AddBoxZone(targetName, vector, length, width, {
name = targetName,
heading = 0,
debugPoly = false,
minZ = vector.z - 10.0,
maxZ = vector.z + 10.0
}, {
options = {{
num = 1,
icon = 'fas fa-example',
label = 'Open',
drawDistance = 10.0,
drawColor = {255, 255, 255, 255},
successDrawColor = {30, 144, 255, 255},
action = function(entity)
if IsPedAPlayer(entity) then
return false
end
TriggerEvent('bit-stores:openSection', store, section)
end,
canInteract = function(entity, distance, data)
if IsPedAPlayer(entity) then
return false
end
return true
end
}},
distance = 2.5
})
end
-- $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$\
-- $$ __$$\\__$$ __|$$ __$$\ $$ __$$\ $$ _____|$$ __$$\
-- $$ / \__| $$ | $$ / $$ |$$ | $$ |$$ | $$ / \__|
-- \$$$$$$\ $$ | $$ | $$ |$$$$$$$ |$$$$$\ \$$$$$$\
-- \____$$\ $$ | $$ | $$ |$$ __$$< $$ __| \____$$\
-- $$\ $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$\ $$ |
-- \$$$$$$ | $$ | $$$$$$ |$$ | $$ |$$$$$$$$\ \$$$$$$ |
-- \______/ \__| \______/ \__| \__|\________| \______/
Stores = {
["LTD"] = {
["Little Seoul"] = {
["drinks"] = {vector3(-718.61, -910.7, 19.22), 3, 0.5},
["alcohol"] = {vector3(-719.08, -913.76, 19.22), 3, 1.5},
["snacks"] = {vector3(-713.72, -913.28, 19.22), 2, 0.5},
["doughnut"] = {vector3(-710.67, -913.16, 19.22), 1, 0.5},
["fruit"] = {vector3(-715.21, -916.02, 19.22), 2, 2},
["slush"] = {vector3(-710.8, -909.15, 19.22), 2, 2},
["pay"] = {vector3(-705.63, -914.01, 19.22), 3, 3}
},
["Richman"] = {
["drinks"] = {vector3(-1831.96, 787.39, 138.32), 3, 3},
["alcohol"] = {vector3(-1829.88, 784.97, 138.31), 3, 3},
["snacks"] = {vector3(-1826.32, 789.3, 138.2), 2, 2},
["doughnut"] = {vector3(-1823.8, 791.45, 138.19), 1, 1},
["fruit"] = {vector3(-1824.75, 785.88, 138.27), 2, 2},
["slush"] = {vector3(-1826.78, 794.56, 138.19), 2, 2},
["pay"] = {vector3(-1820.02, 794.03, 138.12), 3, 3}
},
["Mirror Park"] = {
["drinks"] = {vector3(1151.21, -322.26, 69.21), 3, 3},
["alcohol"] = {vector3(1151.78, -325.09, 69.21), 3, 3},
["snacks"] = {vector3(1156.56, -323.77, 69.21), 2, 2},
["doughnut"] = {vector3(1160.21, -322.98, 69.21), 1, 1},
["fruit"] = {vector3(1156.14, -327.01, 69.21), 2, 2},
["slush"] = {vector3(1159.16, -318.74, 69.21), 2, 2},
["pay"] = {vector3(1164.98, -322.9, 69.21), 3, 3}
},
["Grapeseed"] = {
["drinks"] = {vector3(1707.92, 4931.89, 42.06), 3, 3},
["alcohol"] = {vector3(1705.42, 4933.69, 42.06), 3, 3},
["snacks"] = {vector3(1703.08, 4929.19, 42.06), 2, 2},
["doughnut"] = {vector3(1701.04, 4926.25, 42.06), 1, 1},
["fruit"] = {vector3(1700.87, 4932.08, 42.06), 2, 2},
["slush"] = {vector3(1704.7, 4924.06, 42.06), 2, 2},
["pay"] = {vector3(1697.77, 4923.09, 42.06), 3, 3}
},
["Davis"] = {
["drinks"] = {vector3(-54.97, -1747.4, 29.42), 3, 3},
["alcohol"] = {vector3(-56.93, -1749.65, 29.42), 3, 3},
["snacks"] = {vector3(-52.42, -1752.51, 29.42), 2, 2},
["doughnut"] = {vector3(-49.8, -1754.67, 29.42), 1, 1},
["fruit"] = {vector3(-55.78, -1754.35, 29.42), 2, 2},
["slush"] = {vector3(-47.3, -1751.33, 29.42), 2, 2},
["pay"] = {vector3(-47.0, -1758.2, 29.42), 3, 3}
}
},
["24/7"] = {
["Tataviam"] = {
["drinks"] = {vector3(2555.33, 384.55, 108.62), 2, 2},
["alcohol"] = {vector3(2556.73, 391.18, 108.62), 3, 3},
["snacks"] = {vector3(2552.16, 385.59, 108.62), 2, 2},
["doughnut"] = {vector3(2556.56, 387.36, 108.62), 1, 1},
["fruit"] = {vector3(2559.25, 382.8, 108.62), 2, 2},
["slush"] = {vector3(2551.9, 383.43, 108.62), 2, 2},
["pay"] = {vector3(2556.48, 380.92, 108.62), 3, 3}
},
["Banham"] = {
["drinks"] = {vector3(-3042.09, 587.54, 7.91), 2, 2},
["alcohol"] = {vector3(-3042.75, 594.18, 7.91), 3, 3},
["snacks"] = {vector3(-3045.57, 587.31, 7.91), 2, 2},
["doughnut"] = {vector3(-3041.74, 590.55, 7.91), 1, 1},
["fruit"] = {vector3(-3037.88, 586.9, 7.91), 2, 2},
["slush"] = {vector3(-3044.76, 585.33, 7.91), 2, 2},
["pay"] = {vector3(-3039.9, 584.07, 7.91), 3, 3}
},
["Chumash"] = {
["drinks"] = {vector3(-3244.07, 1003.92, 12.83), 2, 2},
["alcohol"] = {vector3(-3242.33, 1010.51, 12.83), 3, 3},
["snacks"] = {vector3(-3247.25, 1005.0, 12.83), 2, 2},
["doughnut"] = {vector3(-3242.49, 1006.62, 12.83), 1, 1},
["fruit"] = {vector3(-3240.08, 1002.01, 12.83), 2, 2},
["slush"] = {vector3(-3247.5, 1002.79, 12.83), 2, 2},
["pay"] = {vector3(-3242.93, 1000.12, 12.83), 3, 3}
},
["Harmony"] = {
["drinks"] = {vector3(545.78, 2668.9, 42.16), 2, 2},
["alcohol"] = {vector3(538.76, 2669.41, 42.16), 3, 3},
["snacks"] = {vector3(545.14, 2665.18, 42.16), 2, 2},
["doughnut"] = {vector3(542.69, 2669.66, 42.16), 1, 1},
["fruit"] = {vector3(546.8, 2672.96, 42.16), 2, 2},
["slush"] = {vector3(547.38, 2665.85, 42.16), 2, 2},
["pay"] = {vector3(549.2, 2670.7, 42.16), 3, 3}
},
["Sandy"] = {
["drinks"] = {vector3(1962.22, 3743.66, 32.34), 2, 2},
["alcohol"] = {vector3(1968.77, 3745.82, 32.34), 3, 3},
["snacks"] = {vector3(1961.43, 3746.89, 32.34), 2, 2},
["doughnut"] = {vector3(1965.4, 3743.84, 32.34), 1, 1},
["fruit"] = {vector3(1962.79, 3739.54, 32.34), 2, 2},
["slush"] = {vector3(1959.7, 3745.68, 32.34), 2, 2},
["pay"] = {vector3(1959.51, 3740.71, 32.34), 3, 3}
},
["Grand Señora"] = {
["drinks"] = {vector3(2677.96, 3283.59, 55.24), 2, 2},
["alcohol"] = {vector3(2682.15, 3288.96, 55.24), 3, 3},
["snacks"] = {vector3(2675.4, 3286.12, 55.24), 2, 2},
["doughnut"] = {vector3(2680.36, 3285.61, 55.24), 1, 1},
["fruit"] = {vector3(2680.54, 3280.44, 55.24), 2, 2},
["slush"] = {vector3(2674.81, 3283.96, 55.24), 2, 2},
["pay"] = {vector3(2677.72, 3279.86, 55.24), 3, 3}
},
["Chiliad"] = {
["drinks"] = {vector3(1731.99, 6415.47, 35.04), 2, 2},
["alcohol"] = {vector3(1737.46, 6411.29, 35.04), 3, 3},
["snacks"] = {vector3(1734.33, 6417.97, 35.04), 2, 2},
["doughnut"] = {vector3(1734.17, 6413.15, 35.04), 1, 1},
["fruit"] = {vector3(1728.95, 6412.53, 35.04), 2, 2},
["slush"] = {vector3(1732.54, 6419.02, 35.04), 2, 2},
["pay"] = {vector3(1728.2, 6415.63, 35.04), 3, 3}
},
["Strawberry"] = {
["drinks"] = {vector3(28.24, -1345.19, 29.5), 2, 2},
["alcohol"] = {vector3(35.04, -1346.53, 29.5), 3, 3},
["snacks"] = {vector3(29.0, -1341.91, 29.5), 2, 2},
["doughnut"] = {vector3(31.04, -1346.44, 29.5), 1, 1},
["fruit"] = {vector3(26.62, -1349.11, 29.5), 2, 2},
["slush"] = {vector3(26.87, -1342.08, 29.5), 2, 2},
["pay"] = {vector3(24.68, -1346.91, 29.5), 3, 3}
},
["Vinewood"] = {
["drinks"] = {vector3(376.79, 327.51, 103.57), 2, 2},
["alcohol"] = {vector3(382.66, 324.56, 103.57), 3, 3},
["snacks"] = {vector3(378.32, 330.77, 103.57), 2, 2},
["doughnut"] = {vector3(379.2, 325.68, 103.57), 1, 1},
["fruit"] = {vector3(374.12, 324.07, 103.57), 2, 2},
["slush"] = {vector3(376.16, 330.82, 103.57), 2, 2},
["pay"] = {vector3(372.57, 326.93, 103.57), 3, 3}
}
},
["Liquor"] = {
["Murrieta"] = {
["alcohol"] = {vector3(1137.9, -982.95, 46.42), 2, 2},
["pay"] = {vector3(1134.79, -982.6, 46.42), 3, 3}
},
["Vespucci Canals"] = {
["alcohol"] = {vector3(-1223.07, -904.82, 12.33), 2, 2},
["pay"] = {vector3(-1221.78, -907.7, 12.33), 3, 3}
},
["Morninwood"] = {
["alcohol"] = {vector3(-1489.53, -379.9, 40.16), 2, 2},
["pay"] = {vector3(-1486.64, -378.1, 40.16), 3, 3}
},
["Banham Canyon"] = {
["alcohol"] = {vector3(-2969.96, 392.17, 15.04), 2, 2},
["pay"] = {vector3(-2966.78, 391.53, 15.04), 3, 3}
},
["Grand Señora Desert"] = {
["alcohol"] = {vector3(1164.94, 2707.24, 38.16), 2, 2},
["pay"] = {vector3(1165.36, 2710.5, 38.16), 3, 3}
},
["Sandy Shores"] = {
["alcohol"] = {vector3(1396.7, 3603.57, 34.98), 5, 5},
["pay"] = {vector3(1391.94, 3606.26, 34.98), 3, 3}
}
}
}
SERVER CONFIG
-- $$\ $$\ $$$$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$\ $$\
-- $$ | $\ $$ |$$ _____|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ | $$ |
-- $$ |$$$\ $$ |$$ | $$ | $$ |$$ | $$ |$$ / $$ |$$ / $$ |$$ |$$ /
-- $$ $$ $$\$$ |$$$$$\ $$$$$$$\ |$$$$$$$$ |$$ | $$ |$$ | $$ |$$$$$ /
-- $$$$ _$$$$ |$$ __| $$ __$$\ $$ __$$ |$$ | $$ |$$ | $$ |$$ $$<
-- $$$ / \$$$ |$$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |\$$\
-- $$ / \$$ |$$$$$$$$\ $$$$$$$ |$$ | $$ | $$$$$$ | $$$$$$ |$$ | \$$\
-- \__/ \__|\________|\_______/ \__| \__| \______/ \______/ \__| \__|
Webhook = "https://discord.com/api/webhooks/XXXXXXXXXXX"
-- $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$\ $$\
-- $$ | $$ |$$ __$$\ $$ _____|$$ __$$\ $$$\ $$$ |$$ __$$\ $$$\ $$ |$$ _____|\$$\ $$ |
-- $$ | $$ |$$ / \__|$$ | $$ | $$ | $$$$\ $$$$ |$$ / $$ |$$$$\ $$ |$$ | \$$\ $$ /
-- $$ | $$ |\$$$$$$\ $$$$$\ $$$$$$$ | $$\$$\$$ $$ |$$ | $$ |$$ $$\$$ |$$$$$\ \$$$$ /
-- $$ | $$ | \____$$\ $$ __| $$ __$$< $$ \$$$ $$ |$$ | $$ |$$ \$$$$ |$$ __| \$$ /
-- $$ | $$ |$$\ $$ |$$ | $$ | $$ | $$ |\$ /$$ |$$ | $$ |$$ |\$$$ |$$ | $$ |
-- \$$$$$$ |\$$$$$$ |$$$$$$$$\ $$ | $$ | $$ | \_/ $$ | $$$$$$ |$$ | \$$ |$$$$$$$$\ $$ |
-- \______/ \______/ \________|\__| \__| \__| \__| \______/ \__| \__|\________| \__|
function CheckUserMoney(playerID, method, amount)
if Config.Framework == "esx" then
local xPlayer = ESX.GetPlayerFromId(playerID)
if method == "cash" then
local money = xPlayer.getMoney()
if money >= amount then
return true
else
return false
end
elseif method == "bank" then
local money = xPlayer.getAccount('bank').money
if money >= amount then
return true
else
return false
end
end
else
local xPlayer = QBCore.Functions.GetPlayer(playerID)
if method == "cash" then
local money = xPlayer.Functions.GetMoney('cash')
if money >= amount then
return true
else
return false
end
elseif method == "bank" then
local money = xPlayer.Functions.GetMoney('bank')
if money >= amount then
return true
else
return false
end
end
end
end
-- $$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
-- $$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ |
-- $$ / \__|$$ / $$ |$$ / \__|$$ | $$ |
-- $$ | $$$$$$$$ |\$$$$$$\ $$$$$$$$ |
-- $$ | $$ __$$ | \____$$\ $$ __$$ |
-- $$ | $$\ $$ | $$ |$$\ $$ |$$ | $$ |
-- \$$$$$$ |$$ | $$ |\$$$$$$ |$$ | $$ |
-- \______/ \__| \__| \______/ \__| \__|
function PayWithCash(playerID, amount)
if Config.Framework == "esx" then
local xPlayer = ESX.GetPlayerFromId(playerID)
xPlayer.removeAccountMoney('cash', amount)
else
local xPlayer = QBCore.Functions.GetPlayer(playerID)
xPlayer.Functions.RemoveMoney('cash', amount, "Buy store items")
end
end
-- $$$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\
-- $$ __$$\ $$ __$$\ $$$\ $$ |$$ | $$ |
-- $$ | $$ |$$ / $$ |$$$$\ $$ |$$ |$$ /
-- $$$$$$$\ |$$$$$$$$ |$$ $$\$$ |$$$$$ /
-- $$ __$$\ $$ __$$ |$$ \$$$$ |$$ $$<
-- $$ | $$ |$$ | $$ |$$ |\$$$ |$$ |\$$\
-- $$$$$$$ |$$ | $$ |$$ | \$$ |$$ | \$$\
-- \_______/ \__| \__|\__| \__|\__| \__|
function PayWithBank(playerID, amount)
if Config.Framework == "esx" then
local xPlayer = ESX.GetPlayerFromId(playerID)
xPlayer.removeAccountMoney('bank', amount)
else
local xPlayer = QBCore.Functions.GetPlayer(playerID)
xPlayer.Functions.RemoveMoney('bank', amount, "Buy store items")
end
end
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$$\ $$\ $$\
-- $$ __$$\ \_$$ _|$$ | $$ |$$ _____| \_$$ _|\__$$ __|$$ _____|$$$\ $$$ |
-- $$ / \__| $$ | $$ | $$ |$$ | $$ | $$ | $$ | $$$$\ $$$$ |
-- $$ |$$$$\ $$ | \$$\ $$ |$$$$$\ $$ | $$ | $$$$$\ $$\$$\$$ $$ |
-- $$ |\_$$ | $$ | \$$\$$ / $$ __| $$ | $$ | $$ __| $$ \$$$ $$ |
-- $$ | $$ | $$ | \$$$ / $$ | $$ | $$ | $$ | $$ |\$ /$$ |
-- \$$$$$$ |$$$$$$\ \$ / $$$$$$$$\ $$$$$$\ $$ | $$$$$$$$\ $$ | \_/ $$ |
-- \______/ \______| \_/ \________| \______| \__| \________|\__| \__|
function GiveItem(playerID, item, amount)
if Config.Framework == "esx" then
local xPlayer = ESX.GetPlayerFromId(playerID)
xPlayer.addInventoryItem(playerID, item, amount)
else
local xPlayer = QBCore.Functions.GetPlayer(playerID)
xPlayer.Functions.AddItem(item, amount)
end
end
ITEMS
Items = {
["drinks"] = {
["cola"] = {
price = 5,
image = "./assets/drinks/cola.png",
itemName = "cola"
},
["faygo"] = {
price = 10,
image = "./assets/drinks/faygo-cream.png",
itemName = "faygo"
},
["sprite"] = {
price = 9,
image = "./assets/drinks/sprite.png",
itemName = "sprite"
},
["sprunk"] = {
price = 8,
image = "./assets/drinks/sprunk.png",
itemName = "sprunk"
},
["lean"] = {
price = 7,
image = "./assets/drinks/lean.png",
itemName = "lean"
},
["sprunk light"] = {
price = 6,
image = "./assets/drinks/sprunklight.png",
itemName = "sprunklight"
},
["blueberry"] = {
price = 5,
image = "./assets/drinks/blueberry-pom.png",
itemName = "blueberry"
},
["duff"] = {
price = 4,
image = "./assets/drinks/duffbeer.png",
itemName = "duffbeer"
},
["ecola light"] = {
price = 3,
image = "./assets/drinks/ecolalight.png",
itemName = "ecolalight"
},
["junk"] = {
price = 5,
image = "./assets/drinks/junk.png",
itemName = "junk"
}
},
["alcohol"] = {
["beer"] = {
price = 15,
image = "./assets/alcohol/beer.png",
itemName = "beer"
},
["vodka"] = {
price = 20,
image = "./assets/alcohol/vodka.png",
itemName = "vodka"
},
["whiskey"] = {
price = 25,
image = "./assets/alcohol/whiskey.png",
itemName = "whiskey"
},
["wine"] = {
price = 30,
image = "./assets/alcohol/wine.png",
itemName = "wine"
},
["pisswaser"] = {
price = 35,
image = "./assets/alcohol/pisswaser.png",
itemName = "pisswaser"
},
["rockfordhill"] = {
price = 40,
image = "./assets/alcohol/rockfordhill.png",
itemName = "rockfordhill"
},
["schnapps"] = {
price = 45,
image = "./assets/alcohol/schnapps.png",
itemName = "schnapps"
},
["scotch"] = {
price = 50,
image = "./assets/alcohol/scotch.png",
itemName = "scotch"
},
["rose"] = {
price = 55,
image = "./assets/alcohol/vinewoodrose.png",
itemName = "vinewoodrose"
},
["icream"] = {
price = 60,
image = "./assets/alcohol/icream.png",
itemName = "icream"
}
},
["snacks"] = {
["chips"] = {
price = 5,
image = "./assets/snacks/chips.png",
itemName = "chips"
},
["chocolate"] = {
price = 10,
image = "./assets/snacks/chocolate.png",
itemName = "chocolate"
},
["snikkel"] = {
price = 15,
image = "./assets/snacks/snikkel.png",
itemName = "snikkel"
},
["twerks"] = {
price = 20,
image = "./assets/snacks/twerks.png",
itemName = "twerks"
},
["backwoods"] = {
price = 10,
image = "./assets/snacks/backwoods.png",
itemName = "backwoods"
},
["doritos"] = {
price = 15,
image = "./assets/snacks/doritos.png",
itemName = "doritos"
},
["lays"] = {
price = 10,
image = "./assets/snacks/lays.png",
itemName = "lays"
}
},
["doughnut"] = {
["choco"] = {
price = 5,
image = "./assets/doughnut/chocolate.png",
itemName = "chocolate"
},
["strawberry"] = {
price = 10,
image = "./assets/doughnut/strawberry_donut.png",
itemName = "strawberry_donut"
},
["Box"] = {
price = 30,
image = "./assets/doughnut/donutbox.png",
itemName = "donutbox"
},
["Big Box"] = {
price = 50,
image = "./assets/doughnut/donutbox2.png",
itemName = "donutbox2"
},
["bagel"] = {
price = 5,
image = "./assets/doughnut/bagel.png",
itemName = "bagel"
},
["cat donut"] = {
price = 10,
image = "./assets/doughnut/catdonut.png",
itemName = "catdonut"
}
},
["fruit"] = {
["apple"] = {
price = 5,
image = "./assets/fruit/apple.png",
itemName = "apple"
},
["banana"] = {
price = 5,
image = "./assets/fruit/banana.png",
itemName = "banana"
},
["Green Apple"] = {
price = 5,
image = "./assets/fruit/apple_green.png",
itemName = "apple_green"
},
["blueberries"] = {
price = 5,
image = "./assets/fruit/blueberries.png",
itemName = "blueberries"
},
["avocado"] = {
price = 5,
image = "./assets/fruit/avocado.png",
itemName = "avocado"
},
["apricot"] = {
price = 5,
image = "./assets/fruit/apricot.png",
itemName = "apricot"
},
["kiwi"] = {
price = 5,
image = "./assets/fruit/kiwi.png",
itemName = "kiwi"
},
["lemon"] = {
price = 5,
image = "./assets/fruit/lemon.png",
itemName = "lemon"
},
["peach"] = {
price = 5,
image = "./assets/fruit/peach.png",
itemName = "peach"
},
["raspberry"] = {
price = 5,
image = "./assets/fruit/raspberry.png",
itemName = "raspberry"
}
},
["slush"] = {
["blue"] = {
price = 5,
image = "./assets/slush/bluefrozen.png",
itemName = "bluefrozen"
},
["coke"] = {
price = 5,
image = "./assets/slush/cokefrozen.png",
itemName = "cokefrozen"
},
["pepper"] = {
price = 5,
image = "./assets/slush/drpepper.png",
itemName = "drpepper"
},
["fanta"] = {
price = 5,
image = "./assets/slush/fanta.png",
itemName = "fanta"
},
["red"] = {
price = 5,
image = "./assets/slush/redfrozen.png",
itemName = "redfrozen"
},
["sprite"] = {
price = 5,
image = "./assets/slush/sprite.png",
itemName = "sprite"
},
["lime"] = {
price = 5,
image = "./assets/slush/lime.png",
itemName = "lime"
},
["iced coffee"] = {
price = 5,
image = "./assets/slush/icedcoffee.png",
itemName = "icedcoffee"
},
["strawberry"] = {
price = 5,
image = "./assets/slush/strawberry_slush.png",
itemName = "strawberry_slush"
}
}
}
Last updated