Preview
Tebex 12.10€ - ESCROW
https://mono-scripts.tebex.io/package/5685270
THIS CODE HAS A “BRIDGE” TO BE REPLACED BY ESX_SOCIETY.**
If you are using mono_society, you can delete esx_society.
Automatically opens the menus of societies that use esx_society.
FEATURES
- BOSS MENU
- Manage workers. (View worked hours, modify rank, give bonuses, dismiss).
- Hire workers.
- Edit ranks and current salary.
- Create new ranks.
- Delete existing ranks.
- Manage society funds, withdraw and deposit money.
- You can edit many things from the configuration.
- OFF DUTY
- Enter and exit Service.
- Service time counter, only for whitelist jobs. (Days/Hours/Minutes/Seconds)
- If the player disconnects for any reason and their status is ‘On Duty’, automatically switch to ‘Off Duty’. (Same if the player changes characters)
- The player can only be on duty in one job at a time.
Off Duty screenshot
Clock in
Clock out
- MULTIJOB MENU
- Modify the number of jobs a player can have in the menu (Default 3)
- When a player acquires a job from the employment office (or an administrator uses /setjob), it will be automatically added to the menu for management.
- Jobs without Whitelist
- Button to start working
- Button to mark the starting location on the map
- Button to remove the job from the menu
- Jobs with Whitelist
- Number of hours worked
- Enter and exit service (Optional)
- Access the Boss Menu (Optional, only if you are the boss)
- Remove job from the list (Only if you are on duty)
- Jobs without Whitelist
MultiJob Menu screenshot
Multijob Menu
Job selected with all multi-job menu options deactivated.
Job selected with all options activated.
off-duty
on-duty
Command
- /deljob [id] [job] to delete the job from the selected player. This command is only for administrators.
Discord LOGS
Independent Logs for Each Job (server/discord.lua)
- Log of entering/exiting service.
- Log of deposit/withdraw money
Export to see the jobs of a nearby player in a menu
-- Export
local distance = 5 -- Minimum distance with another player
exports['mono_society']:OpenNearbyJobs(distance)
-- Example Command
RegisterCommand('mono_society:OpenNearbyJobs', function()
exports['mono_society']:OpenNearbyJobs(5)
end)
Event to open the BossMenu, this event checks if the player is the 'boss'.
----- TriggerEvent
TriggerEvent('mono_society:BossMenu', { job = job })
----- Example to open police Boss Menu Client
TriggerEvent('mono_society:BossMenu', { job = 'police' })
Export to retrieve player information.
-- Export
exports['mono_society']:GetPlayerInfo(PlayerId, job)
-- Example Command
RegisterCommand('infoplayer:mono_society', function(args)
local PlayerId = PlayerId() -- Id Player.
local job = 'police' -- Job we want information about.
local info = exports['mono_society']:GetPlayerInfo(PlayerId, job)
local labels = json.decode(info.labels)
-- Verify if the player has the necessary hours of work for some action.
if info.totaltime > '0:24:00:00' then
-- If the player has the hours.
print('You have the necessary hours, ' .. info.totaltime)
else
-- The player does not have the hours.
print('You lack hours, ' .. info.totaltime)
end
-- Check if the player is on duty, 1 = on duty, 0 = off duty
if info.estado == 1 then
-- Player is on duty
print('On duty' .. info.estado)
elseif info.estado == 0 then
-- Player is off duty
print('Off duty' .. info.estado)
end
-- VALUES
print('TOTAL TIME: ' .. info.totaltime) -- 00:00:00:00
print('SERVICE: ' .. info.estado) -- 1 = on duty, 0 = off duty
print('JOB NAME: ' .. info.job) -- police
print('JOB GRADE NAME: ' .. labels.grade_name) -- boss
print('JOB LABEL: ' .. labels.name_label) -- LSPD
print('JOB GRADE LABEL: ' .. labels.grade_label) -- Captain
end)
CONFIG
This code is very easy to manage, and everything is explained on how it works in config.lua. If you purchase this code, you will receive support from me at any time.
Tebex 12.10€ - ESCROW
https://mono-scripts.tebex.io/package/5685270
|------------------------------------|---------------------------------------------|
| Code is accessible | Some functions.
| Subscription-based | No
| Lines (approximately) | server 800+ / client 800+
| Requirements | ESX FrameWork, ox_lib
| Support | YES
|-----------------------------------------------------------------------------------|
My free scripts.