Configuration
shared.lua
Config, Lang = {}, {}
-- Notification Trigger example:
-- TriggerClientEvent("bit-notifications:open", src, "Title", "Message", 5000, "success")
-- Notification types: "success", "error", "info", "warning"
-- To send open/close message:
-- /openstore [message] | /closestore [message]
-- 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 = ""
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- Notifications position (top-right, top-left, top-center, bottom-right, bottom-left, bottom-center, center-left, center-right)
Config.notiPosition = "center-left"
-- Store notifications position (top-right, top-left, top-center, bottom-right, bottom-left, bottom-center, center-left, center-right)
Config.storesNotiPosition = "top-center"
-- Command to open the store (only users with the required job can use it)
Config.openStoreCommand = "openstore"
-- Command to close the store (only users with the required job can use it)
Config.closeStoreCommand = "closestore"
Language Configuration
Lang.error = "Error"
Lang.noPermissions = "You don't have permissions to do this action"
Store Announcements Configuration
You can configure which jobs can send open/close store announcements. Each store requires:
image: Image URL to display in the announcementname: Display name of the storejob: Job name that can send announcementsminGrade: Minimum job grade required
Stores = {
["Vanilla"] = {
image = "https://i.ibb.co/XpMB3jS/vanilla.jpg",
name = "Vanilla",
job = "vanilla",
minGrade = 0
},
["Bahama"] = {
image = "https://i.ibb.co/NxYncsP/bahama.jpg",
name = "Bahama",
job = "bahama",
minGrade = 0
},
["Tequilala"] = {
image = "https://i.ibb.co/FKY1jzX/tequilala.png",
name = "Tequilala",
job = "tequilala",
minGrade = 0
},
["Yellow Jack"] = {
image = "https://i.ibb.co/B3QN0Ys/yellowjack.png",
name = "Yellow Jack",
job = "yellowjack",
minGrade = 0
},
["White Widow"] = {
image = "https://i.ibb.co/HHnmy1T/whitewidow.jpg",
name = "White Widow",
job = "whitewidow",
minGrade = 0
},
["Los Santos Customs"] = {
image = "https://i.ibb.co/61ZGkK3/lossantoscustoms.jpg",
name = "Los Santos Customs",
job = "mechanic",
minGrade = 0
},
["Benny"] = {
image = "https://i.ibb.co/NTWzR2W/bennys.jpg",
name = "Benny's",
job = "bennys",
minGrade = 0
},
["Bean Machine"] = {
image = "https://i.ibb.co/6PW53Xb/beanmachine.jpg",
name = "Bean Machine",
job = "beanmachine",
minGrade = 0
},
["Pizza This"] = {
image = "https://i.ibb.co/jryLZJq/pizzathis.png",
name = "Pizza This",
job = "pizzathis",
minGrade = 0
},
["Vangelico"] = {
image = "https://i.ibb.co/vPSVv5P/vangelico.png",
name = "Vangelico",
job = "vangelico",
minGrade = 0
},
["Galaxy"] = {
image = "https://i.ibb.co/T46r51z/galaxy.png",
name = "Galaxy",
job = "galaxy",
minGrade = 0
},
["Pearls"] = {
image = "https://i.ibb.co/Xsd11V5/pearls.gif",
name = "Pearls",
job = "pearls",
minGrade = 0
},
["Digital Den"] = {
image = "https://i.ibb.co/cbMgWcH/digitalden.jpg",
name = "Digital Den",
job = "digitalden",
minGrade = 0
},
["Pillbox"] = {
image = "https://i.ibb.co/MMX2VYJ/pillbox.jpg",
name = "Pillbox",
job = "ambulance",
minGrade = 0
},
["Burger Shot"] = {
image = "https://i.ibb.co/fSj1T3W/burguershot.jpg",
name = "Burger Shot",
job = "burgershot",
minGrade = 0
},
["24/7"] = {
image = "https://i.ibb.co/rtDPHQk/247.png",
name = "24/7",
job = "247",
minGrade = 0
},
["Ammu-Nation"] = {
image = "https://i.ibb.co/RyfFyyn/ammunation.png",
name = "Ammu-Nation",
job = "ammunation",
minGrade = 0
},
["Downtown Cab"] = {
image = "https://i.ibb.co/0QLg8Cm/taxi.jpg",
name = "Downtown Cab",
job = "taxi",
minGrade = 0
},
["LSPD"] = {
image = "https://i.ibb.co/0rJx3fy/police.png",
name = "LSPD",
job = "police",
minGrade = 0
},
["BCSO"] = {
image = "https://i.ibb.co/x21Rb1W/sheriff.jpg",
name = "BCSO",
job = "sheriff",
minGrade = 0
}
}
You can add more stores following the same structure.