Store Tebex for fivem server
- Vehicles
- Weapons
- Command of give box, coins, vehicle
- logs discord
- bucket system with print
This resources is fully configurable.
With en lang & fr, notify is include !
Config client :
RegisterCommand("store_tebex", function()
TriggerEvent("core:initBoutique") -- to open the store
end)
function HudOption(bool)
if bool then
-- To show HUD
else
-- To hide HUD
end
end
Store_Tebex = {
ESX = {
export = true, -- turn false if not use export
eventShared = "esx:getSharedObject", -- name of event
},
vehicle_list = {
{label = "Komoda", name = "komoda", price = 3000},
{label = "Calico", name = "calico", price = 2850},
{label = "Sultan Retro", name = "sultan2", price = 2000},
},
weapons_list = {
{label = "Assault Rifle", name = "ASSAULTRIFLE", price = 6500}, -- name just sufix ex : WEAPON_PISTOL = PISTOL
{label = "Assault Rifle MK2", name = "ASSAULTRIFLE_MK2", price = 5000},
{label = "SMG MK2", name = "SMG_MK2", price = 4000},
{label = "Fusil à pompe MK2", name = "PUMPSHOTGUN_MK2", price = 6000},
{label = "Carabine d'assaut MK2", name = "CARBINERIFLE_MK2", price = 5000},
{label = "Fusil Gusenberg", name = "GUSENBERG", price = 5500},
{label = "G36C MK2", name = "SPECIALCARBINE_MK2", price = 5500},
},
items_list_props = { -- items list props by name
["meteorite"] = 'prop_choc_meto',
["burger"] = 'prop_cs_burger_01',
["donut"] = 'prop_amb_donut',
["sandwich"] = 'prop_sandwich_01',
["water"] = 'prop_ld_flow_bottle',
["cola"] = 'prop_ecola_can',
["sprunk"] = 'v_res_tt_can03',
["clip"] = 'prop_box_ammo01a',
["serflex"] = 'hei_prop_zip_tie_positioned',
["cagoule"] = 'prop_player_gasmask',
["radio"] = 'prop_cs_hand_radio',
["medikit"] = 'xm_prop_smug_crate_s_medical',
["repairkit"] = 'v_ind_cs_toolbox3',
["money"] = 'bkr_prop_money_wrapped_01',
["black_money"] = 'bkr_prop_money_counter',
["weed_pooch_class1"] = 'bkr_prop_weed_smallbag_01a',
["weed_pooch_class2"] = 'bkr_prop_weed_smallbag_01a',
["weed_pooch_class3"] = 'bkr_prop_weed_smallbag_01a',
["coke_pooch"] = 'xm3_prop_xm3_bag_coke_01a',
},
case_camera = {
vector = vector3(251.30, 5275.71, 612.71),
fov = 30.0,
rot = 205.82,
point_to_coords = true,
asset_spawn = { -- For spawn weapon coords
vector = vector3(253.23, 5270.81, 612.36),
heading = 205.82,
},
},
camera_vehicle = {
color_custom_enabled = true, -- if you use RGB color
vector = vector3(922.71, 53.16, 80.89),
fov = 70.0,
rot = 110.59,
point_to_coords = true,
vehicle_spawn = {
vector = vector3(918.40, 53.99, 80.89),
heading = 189.26
},
vehicle_spawn_testDriving = {
vector = vector3(918.40, 53.99, 80.89),
heading = 189.26
},
},
camera_weapon = {
vector = vector3(13.38, -1097.15, 29.83),
fov = 20.0,
rot = 340.40,
point_to_coords = true,
weapon_spawn = {
vector = vector3(14.90, -1093.39, 30.0),
heading = 250.90
},
}
}
Config JS :
list_case = [
{
name: "classic",
label : "Classic",
price : 500,
items_list : [
{name : "burger", label : "Burger", count : 20, type : "item_standard"},
{name : "sandwich", label : "Sandwich", count : 20, type : "item_standard"},
{name : "cola", label : "Sandwich", count : 10, type : "item_standard"},
{name : "medikit", label : "Kit médical", count : 3, type : "item_standard"},
{name : "meteorite", label : "Barre de chocolat", count : 10, type : "item_standard"},
{name : "sprunk", label : "Sprunk", count : 10, type : "item_standard"},
{name : "water", label : "Eau", count : 10, type : "item_standard"},
{name : "money", label : "Money", count : 200, type : "item_standard"},
{name : "money", label : "Money", count : 200, type : "item_standard"},
{name : "money", label : "Money", count : 200, type : "item_standard"},
{name : "money", label : "Money", count : 400, type : "item_standard"},
{name : "money", label : "Money", count : 400, type : "item_standard"},
{name : "money", label : "Money", count : 400, type : "item_standard"},
{name : "money", label : "Money", count : 400, type : "item_standard"},
{name : "money", label : "Money", count : 850, type : "item_standard"},
{name : "money", label : "Money", count : 850, type : "item_standard"},
]
},
{
name: "platinium",
label : "Illégale",
price : 1000,
items_list : [
{name : "weed_pooch_class3", label : "Pochon weed LS", count : 15, type : "item_standard"},
{name : "cagoule", label : "Cagoule", count : 5, type : "item_standard"},
{name : "coke_pooch", label : "Kevlar", count : 10, type : "item_standard"},
{name : "weed_pooch_class1", label : "Pochon weed BC", count : 15, type : "item_standard"},
{name : "cagoule", label : "Cagoule", count : 5, type : "item_standard"},
{name : "coke_pooch", label : "Kevlar", count : 10, type : "item_standard"},
{name : "money", label : "Money", count : 1000, type : "item_standard"},
{name : "money", label : "Money", count : 1000, type : "item_standard"},
{name : "weed_pooch_class2", label : "Pochon weed PB", count : 15, type : "item_standard"},
{name : "cagoule", label : "Cagoule", count : 5, type : "item_standard"},
{name : "coke_pooch", label : "Kevlar", count : 10, type : "item_standard"},
{name : "money", label : "Money", count : 1000, type : "item_standard"},
{name : "money", label : "Money", count : 1000, type : "item_standard"},
{name : "money", label : "Money", count : 1000, type : "item_standard"},
{name : "cagoule", label : "Cagoule", count : 5, type : "item_standard"},
]
},
{
name: "emeraud",
label : "Émeraude",
price : 1500,
items_list : [
{name : "burger", label : "Burger", count : 20, type : "item_standard"},
{name : "sandwich", label : "Sandwich", count : 20, type : "item_standard"},
{name : "cola", label : "Coca Cola", count : 10, type : "item_standard"},
{name : "meteorite", label : "Barre de chocolat", count : 10, type : "item_standard"},
{name : "serflex", label : "Serflex", count : 7, type : "item_standard"},
{name : "sprunk", label : "Sprunk", count : 10, type : "item_standard"},
{name : "money", label : "Money", count : 1500, type : "item_standard"},
{name : "money", label : "Money", count : 1500, type : "item_standard"},
{name : "money", label : "Money", count : 2000, type : "item_standard"},
{name : "money", label : "Money", count : 2000, type : "item_standard"},
{name : "money", label : "Money", count : 2500, type : "item_standard"},
{name : "money", label : "Money", count : 2500, type : "item_standard"},
{name : "golf75r", label : "GOLF 7R", type : "item_vehicle"},
{name : "tmaxdx", label : "TMAX 530", type : "item_vehicle"},
{name : "money", label : "Money", count : 3000, type : "item_standard"},
{name : "money", label : "Money", count : 3000, type : "item_standard"},
]
},
{
name: "gold",
label : "Or",
price : 500,
items_list : [
{name : "coins", label : "Coins", count : 200, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 500, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 150, type:"item_coins"},
{name : "coins", label : "Coins", count : 400, type:"item_coins"},
{name : "coins", label : "Coins", count : 200, type:"item_coins"},
{name : "coins", label : "Coins", count : 250, type:"item_coins"},
{name : "coins", label : "Coins", count : 250, type:"item_coins"},
{name : "coins", label : "Coins", count : 250, type:"item_coins"},
{name : "coins", label : "Coins", count : 700, type:"item_coins"},
]
},
{
name: "gun-case",
label : "Armes",
price : 4000,
items_list : [
{name : "WEAPON_PISTOL", label : "Pistol", count : 250, type:"item_weapon"},
{name : "WEAPON_SNSPISTOL", label : "Pistol SNS", count : 250, type:"item_weapon"},
{name : "WEAPON_PISTOL50", label : "Pistol 50", count : 250, type:"item_weapon"},
{name : "WEAPON_APPISTOL", label : "Pistol AP", count : 250, type:"item_weapon"},
]
},
{
name: "vehicle-case",
label : "Véhicules",
price : 4000,
items_list : [
{name : "sultanrs", label : "SultanRS", type : "item_vehicle"},
{name : "komoda", label : "Komoda", type : "item_vehicle"},
{name : "baller3", label : "Baller 3gen", type : "item_vehicle"},
]
},
]
Config server :
Store_Tebex = {
ESX = {
export = true, -- turn false if not use export
eventShared = "esx:getSharedObject", -- name of event
},
command = { -- all comand for group
vehicle = {
name = "give_vehicle",
group = {
'admin',
'superadmin'
}
},
case = {
name = "give_case",
group = {
'admin',
'superadmin'
}
},
coins = {
name = "addCoins",
group = {
'admin',
'superadmin'
}
},
tebexCoins = { -- command exec of paiement on tebex store
name = "tebexCoins",
},
},
-- This function it's for already command or event of vehicle
giveVehicle = function(props, identity, plate) -- it's for my garage system write your SQL injection for your garage
local Player = ESX.GetPlayerFromId(source)
MySQL.Async.execute("INSERT INTO player_vehicles (license, identite, propriete, plaque, etat, garage, rob) VALUES (@license, @identite, @propriete, @plaque, @etat, @garage, @rob);", {
["@license"] = Player.identifier,
["@propriete"] = props,
["@identite"] = identity,
["@plaque"] = plate,
["@etat"] = 1,
["@garage"] = "Garage Centre",
["@rob"] = 0
})
end,
-- This function it's for already command or event of weapon
giveWeapon = function(name)
local Player = ESX.GetPlayerFromId(source)
Player.addWeapon(name, 250)
end
}
| Code is accessible | Only Config |
| Subscription-based | No |
| Lines (approximately) | +5000 |
| Requirements | No |
| Support | Yes |
