Shopping Cart
RELEASE Esx upgraded duty Releases Cfxre Community

[RELEASE] Esx_upgraded_duty – Releases – Cfx.re Community


Hello FiveM Community, This script is very important mostly for Roleplay Servers (ESX).

This upgraded version of esx_duty and work better and optimizer and advance stuff

  • Create off duty jobs just with one command
  • Much optimizer than others and get low usage (0.1 and 0.20% on idle)
  • Have lots of exports for scripting like blocking something for on duty on other scripts
  • Multi help options on config
  • Multi notify options on config
  • Multi-color for on and off duty
  • Multi-color for on and off duty
  • Added more locates
  • Can have multi-location for jobs just on configs
  • Can enter any off duty jobs (because someone doesn’t like to have a job like offpolice)
  • Added one method and config to don’t check all the zones to get lower usage
  • Clean coding

Resources provided with this script have additional code alongside the original code to make the hud fully functional at install. If you have these resources already then make sure to remove or disable them to prevent any conflict.

Video

Installation

  • Add this in your server.cfg in the following order:
start esx_upgraded_duty

Make off duty jobs

  • Just need to execute the command in your cmd like this:
CreateOffDutyJob [jobname]
CreateOffDutyJob ambulance

Exports

Client

ExportDescriptionParameter(s)Return type
CheckDutyReturns player is on duty or nottrue or false or nil
GetOffDutyJobsReturns a list of off duty jobstable
GetOnDutyJobsReturns a list of on-duty jobstable
IsJobOnDutyReturns that job is on duty job or notstringtrue or false or nil
IsJobOffDutyReturns that job is off duty job or notstringtrue or false or nil

Server

ExportDescriptionParameter(s)Return type
CheckDutyReturns player id is on duty or notinttrue or false or nil
GetOffDutyJobsReturns a list of off duty jobstable
GetOnDutyJobsReturns a list of on-duty jobstable
IsJobOnDutyReturns that job is on duty job or notstringtrue or false or nil
IsJobOffDutyReturns that job is off duty job or notstringtrue or false or nil

Resources used:



Original source: https://forum.cfx.re/t/release-esx-upgraded-duty/2092143

Leave a Reply
FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Easy and encrypted