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

You can choose whether or not you want logs

Log = {
        DiscordLog = true, -- Discord logs ?
        Webhook = "", -- discord url
        BotName = "Weazel Compta", -- Bot name
        LogTitle = "Annonce", -- Title
        Color = 16711680, -- hex color
    },
Exemple

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:

  1. "Classic" represents pop-up

  2. “Phone” represents a phone notification

Cover

"Classic"

Cover

"Phone"

Concerning "SocietyAccount" it is the job which earns money for each ad, to give the example the weazel news will be the company which will earn the money therefore "society_weazel"

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}
    }

These are the options available when opening the menu, "value" represents the time in milliseconds "label" the description "price" the price withdrawn from the bank account

Society

For any company present on the server you must put it in the config

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"},
}
  1. "name" is the name displayed

  2. "logo" is the logo in .png format (src/img/jobname.png) and named "jobname" in lowercase

  3. "url" is required if you use the phone as a means of notification

  4. "icon" it's an icon available on fontawesome (free)

  5. "color" is the color of the icon

Locales

Last updated