
Installation & Config
There is the installation guide and config about our Business Annoucement System
๐ฆ Installation Guide โ b_announces
b_announcesThis script allows businesses in your FiveM server to post dynamic and styled announcements via a UI. Each announcement supports emojis, markdown formatting, and logos, and fades out individually after a configurable time.
๐ง Requirements
ESX, QBCore or QBox (selectable in the config) You can change the core related export in
cl_utils.lua
๐ Installation Steps
Place the Resource
Drop the
b_annoncesfolder into yourresourcesdirectory.
Ensure the Resource Add the following to your
server.cfg:ensure b_annoncesConfigure It Open
config.luaand edit:Config = Config or {} Config.Core = 'esx' -- 'esx' 'qbcore' or 'qbox' Set your core here, it will be used to get the player job Config.UseCommand = true -- Set to true to use a command to open the announcement system, set to false to disable it Config.CommandName = 'announces' -- Command to open the announcement system, you can change it to whatever you want Config.UseKeyMapping = true -- Set to true to use a key mapping to open the announcement system, set to false to disable it Config.KeyMapping = 'F3' -- Key to open the announcement system, you can change it to whatever you want, leave it as is if you don't want to use key mapping Config.KeyMappingTitle = "Open Announcement System" -- Title of the key mapping, you can change it to whatever you want, leave it as is if you don't want to use key mapping Config.TestAnnounce = false -- (/testannounce) Set to true to test the announcement system, it will show a test announcement when you open the system, set to false to disable it Config.Time = 15000 -- Time in ms before the announcement disappears, you can change it to whatever you want Config.ProgressBar = true -- Set to true to show a progress bar when the announcement is displayed, set to false to disable it Config.PlaySound = true -- Set to true to play a sound when the announcement is displayed, set to false to disable it -- The webhooks is sended only when a player sends an announcement, it will not be sent for scheduled announcements. Config.SendWebhook = false -- Set to true to send a webhook when an announcement is sent, set to false to disable it Config.WebhookURL = "https://discord.com/api/webhooks/your_webhook_url_here" -- Webhook URL to send the announcement, you can change it to whatever you want, leave it as is if you don't want to use webhooks -- You can translate some text in index.html -- The job was taken automatically from the player data, this config is used to set the company name ONLY ('Benny's Custom Garage' instead of mechanic for example) for each job. Config.JobToCompanyName = { police = 'Los Santos Police Department', ambulance = 'San Andreas Medical Services', mecano = 'Benny\'s Custom Garage', mechanic = 'Benny\'s Custom Garage', burger = 'Burger Shot', pizza = 'Pizza This' -- Add more jobs and their corresponding company names here : -- jobname = 'Company Name', -- For logo, add the .png file in html/logo/ with the same name as the job for example : police.png for police job, ambulance.png for ems etc. } Config.ScheduledAnnouncements = { -- Scheduled announcements will be displayed at the specified time, you can add as many as you want --{ -- time = "13:40", -- Time in HH:MM format, it will be displayed at this time -- job = "police", -- Job that will send the announcement -- message = ":police_car: **Rappel**\nLes recrutements sont ouverts !", -- Message to display, you can use emojis from Config.Emojis -- image = "https://imgs.search.brave.com/xB93cgrB3oZ7Os6iVJ74r18s_LZcYgUSH5N7a4jzLCE/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9zaGFy/ZWQuZmFzdGx5LnN0/ZWFtc3RhdGljLmNv/bS9zdG9yZV9pdGVt/X2Fzc2V0cy9zdGVh/bS9idW5kbGVzLzQ4/Mzc4L3cwdG16cW96/eGwzZXdsbmQvNDQz/NDY4NGRhYjEzZjJj/ZWYwNjhkZmMzNGQw/MTJjYWZiNWUxMmM3/ZS9oZWFkZXJfNTg2/eDE5Mi5qcGc_dD0x/NzMzODYxMDQ5", -- Optional image URL to display in the announcement, you can remove this line if you don't want to use images -- progressBar = true, -- Set to true to show a progress bar when the announcement is displayed -- sound = true, -- Set to true to play a sound when the announcement is displayed -- duration = 10000 -- Time in ms before the announcement disappears, you can change it to whatever you want --}, --{ -- time = "20:00", -- job = "mecano", -- message = "**:tools: Promo spรฉciale ce soir !**", -- progressBar = false, -- sound = true, -- duration = 8000 --} } Config.Emojis = {-- Use :name: to use the emojis in annoucements (ex: :fire: โ ๐ฅ) you can add many more emojis smile = "๐", sad = "๐ข", fire = "๐ฅ", heart = "โค๏ธ", star = "โญ", warning = "โ ๏ธ", check = "โ ", cross = "โ", clock = "โฐ", money = "๐ฐ", car = "๐", truck = "๐", wrench = "๐ง", hammer = "๐จ", tools = "๐ ๏ธ", phone = "๐", alert = "๐จ", police = "๐ฎ", ambulance = "๐", hospital = "๐ฅ", burger = "๐", pizza = "๐", drink = "๐ฅค", party = "๐ฅณ", gift = "๐", info = "โน๏ธ", boom = "๐ฅ", skull = "๐", ghost = "๐ป", blood = "๐ฉธ", explosion = "๐ฃ", love = "๐", cool = "๐", gun = "๐ซ", knife = "๐ช", lock = "๐", unlock = "๐", id = "๐", doc = "๐", box = "๐ฆ", note = "๐", eyes = "๐", door = "๐ช", radio = "๐ป", gas = "โฝ", store = "๐ช", bank = "๐ฆ", crown = "๐", calendar = "๐ ", globe = "๐", location = "๐", light = "๐ก", megaphone = "๐ข", rocket = "๐", medal = "๐๏ธ", trophy = "๐", shopping = "๐", sale = "๐ท๏ธ", mechanic = "๐ ๏ธ", music = "๐ถ", mic = "๐ค", camera = "๐ธ", film = "๐ฌ", bar = "๐ป", cocktail = "๐ธ", wine = "๐ท", beer = "๐บ", confetti = "๐", siren = "๐", spark = "โจ", moon = "๐", sun = "โ๏ธ", thunder = "โก", snow = "โ๏ธ", star2 = "๐", bag = "๐", airplane = "โ๏ธ", map = "๐บ๏ธ", laptop = "๐ป", cpu = "๐ง ", building = "๐ข", house = "๐ ", hotel = "๐จ", ticket = "๐๏ธ", art = "๐จ", recycle = "โป๏ธ", test = "๐งช", pill = "๐", shield = "๐ก๏ธ", judge = "โ๏ธ", alarm = "โณ", time = "๐", handshake = "๐ค", moneybag = "๐ฐ", robot = "๐ค", hacker = "๐ป", bandit = "๐ฅท", chef = "๐จโ๐ณ", paintbrush = "๐๏ธ", pin = "๐", pushpin = "๐", zap = "๐ด", camera_flash = "๐ท", fuel = "โฝ", bell = "๐", books = "๐", box_open = "๐ฆ", hourglass = "โ", medal_1st = "๐ฅ", medal_2nd = "๐ฅ", medal_3rd = "๐ฅ", truck_delivery = "๐", taxi = "๐", motorcycle = "๐๏ธ", police_car = "๐", helicopter = "๐", train = "๐", boat = "๐ค", warehouse = "๐ญ", clipboard = "๐", cart = "๐๏ธ", bag_shopping = "๐๏ธ", warning_red = "๐ฅ", green_circle = "๐ข", red_circle = "๐ด", yellow_circle = "๐ก", white_circle = "โช", black_circle = "โซ", boom_cloud = "๐ฉ๏ธ", chat = "๐ฌ", loudspeaker = "๐ฃ", scroll = "๐", envelope = "โ๏ธ", package = "๐ฆ", fuel_pump = "โฝ", rotating_light = "๐จ" }
๐ก Features
โ Display styled announcements from any job
๐ผ๏ธ Show job-specific logos
๐ Supports markdown formatting:
**bold**,*italic*,__underline__๐ Emoji support via
:emoji:syntax๐ฆ Scheduled Announcement via Config.lua
๐ฆ Scheduled Announcements
To use the scheduled announcement feature, you need to go in config.lua
The scheduled announcements will be sended one time per day. You can use HTML balise in the text and discord markdowns too.
If you don't want to use it, just delete the announcement and let the config like this.
๐งช Usage
๐ Command
Players can type /announce in chat to open the input UI.
This will only work if their job is configured in
JobToCompanyName.
โ๏ธ Export Usage
You can trigger a company announcement programmatically using the export:
The script will detect the playerโs current job and auto-assign the appropriate name and logo.
โ๏ธ Markdown & Emoji Format Examples
In your message, you can use:
**bold***italic*__underline__for new lines
Emojis like
:gift:,:fire:,:tools:(mapped in config)
Example:
๐ ๏ธ UI Customization
Logos should be placed in:
Example:
For a job mechanic, put mechanic.png in that folder.
Make sure the image name matches the job name in lowercase.
๐ Support
If you run into any issues, join our discord here.
Last updated