Configuration
The config file is the only thing you can modify, this file includes everything like the logs, the price/time values and the list of jobs
Discord
Log = {
DiscordLog = true, -- Discord logs ?
Webhook = "", -- discord url
BotName = "Weazel Compta", -- Bot name
LogTitle = "Annonce", -- Title
Color = 16711680, -- hex color
},
General
General = {
TypeAnnoucement = "Classic", -- {"Classic" = pop up} - {"Phone" = Phone notification with url in Config.Jobs !!!! and only work with lb-phone},
SocietyAccount = "society_weazel", -- society account for esx_addonaccount (which one receive money like weazel news society)
timeToWait = 10, -- time to wait in minutes between annoucement
},You can choose 2 types for ads:
"Classic" represents pop-up
“Phone” represents a phone notification

"Classic"

"Phone"
phone notifications currently only work with “LB-Phone”
Timer
Timer = { -- Config for the menu
{value = 5000, label = "5 secondes ( 5000$ )", price = 5000},
{value = 8000, label = "8 secondes ( 7500$ )", price = 7500},
{value = 10000, label = "10 secondes ( 9000$ )", price = 9000}
}Society
For any company present on the server you must put it in the config
["society_custom"] represents the unique id as well as the company in relation to ESX and the job's name
Config.Jobs = { -- for every society
--["society_custom"] = {name = "name to show (simple)", logo = "logo.png", url = "flaticon.com (inspect element and get url)", icon = fontawesome (open/close), color = color icon},
["society_mechanic"] = {name = "Benny's", logo = "mechanic.png", url = "https://cdn-icons-png.flaticon.com/512/10281/10281554.png", icon = "fa-solid fa-gears", color = "#ff8000"},
}
"name" is the name displayed
"logo" is the logo in .png format (src/img/jobname.png) and named "jobname" in lowercase
"url" is required if you use the phone as a means of notification
"icon" it's an icon available on fontawesome (free)
"color" is the color of the icon
Locales
You can create your own "lang.json" in the "locales" folder but be careful to respect the "%s" which represents values during a notification so if there are 2 "%s" at the time of the translation keep both!
Last updated