Unzip the folder and place this folder in your server's resource folder.
Add the resource in your server.cfg -> ensure dawsmo_jobannouncement .
How to use (Client side)
Open/Close
The script works with ox_lib and more specifically with menus/callback.
To use the "Open/Close" option, simply this export in your job menu.
-- In the menu's options:exports["dawsmo_jobannouncement"]:OpenClose()
To be precise, the menu is only used by the player to choose to open or close via the job menu, so the export will directly open a menu with two options, simply "open" and "close", and the script will retrieve the job name via "ESX.PlayerData.job.name".
Announcement
For the ads section, use this export to open a menu:
As for the other, this export will directly open a menu with the possibility of setting a title, message and duration (configurable in Config).
Simply set the export to a menu or whatever you like, and the script will retrieve the job name via "ESX.PlayerData.job.name" and then link it to "Society_JobName" to find out which company the player belongs to.