[ESX] MONO SOCIETY ( Boss Menu - Off Duty - MultijobMenu ) ( Service time count)

mono_society2

Preview

Tebex 12.10€ - ESCROW
https://mono-scripts.tebex.io/package/5685270

:warning:
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.
Boss Menu screenshot

image
image
image
image
image
image
image


image

  • 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
image
Clock out
image

  • 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)
MultiJob Menu screenshot

Multijob Menu
image
Job selected with all multi-job menu options deactivated.
image
Job selected with all options activated.
image
off-duty
image
on-duty
image

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.

3 Likes

:open_mouth: this work is amazing :heart_eyes:

1 Like

Thanks! :smiley:

New Update

  • New service function in Zone: If a player exits the previously configured zone, they will automatically go off duty. Additionally, I added a function for package deliveries with a time limit.

  • An option in the Config to define the maximum number of jobs in the ‘MultiJobMenu’.

  • An option to quickly copy coordinates with a Radial Menu. You can enable or disable this feature in the Config.lua.

Preview New:
Exit Zone Job

Delivery Time option.

is it possible to disable boss menu portion of script to use another boss menu with your offduty and multijob feature?

if possible you can change the trigger to your boss menu and use only the duty and multijobmenu functions

1 Like

Is it also possible to only use the boss menu?

If you want to just use the BossMenu at your leisure

MONO_SOCIETY v1.2.0 Improve the efficiency of the code in many aspects, I am not going to go into details of what has been modified but I will leave a few lines of what I have added. If you find anything untranslated I would be grateful if you could let me know.

  • Reset Hours to selected player. (Clicking on player hours),

  • Unconfigured jobs appear with the icon in Orange and can be started/deleted from the menu.

  • New lines in locales

  • I’m probably forgetting to mention something…

Can bosses manage work outfits?

Not at the moment but there is the possibility that in the new update it will be added to be able to modify the workers’ outfit.

New update available and new Post