Docs/Yecoyz Multijob

Installation

Dependencies and setup for Yecoyz Multijob.

1. Dependencies

You need all of these running before yecoyz_multijob:

Resource Notes
oxmysql Required
yecoyz_core Required, 1.6.0 or newer
ESX, QBCore or Qbox Your framework
yecoyz_duty Optional: shifts and hours per job
yecoyz_tablet Optional: the Jobs app
yecoyz_bossmenu Optional: Company button, second jobs in staff lists

2. Download

Download the latest release from GitHub and extract it into your resources folder.

Important

Don't rename the resource folder.

3. server.cfg

Start it after the dependencies, your framework and the optional Yecoyz scripts:

cfg
ensure oxmysql
ensure yecoyz_core
ensure yecoyz_duty        # optional
ensure yecoyz_tablet      # optional
ensure yecoyz_bossmenu    # optional
ensure yecoyz_multijob

4. Start the server

The database tables (yecoyz_multijob_jobs and yecoyz_multijob_players) are created on the first start. Players open the menu with /jobs or J. Each player can change the key in Settings > Key Bindings > FiveM.

Jobs players already have are added to their list the first time they log in, so nothing has to be moved by hand.

Qbox

Qbox keeps a job list of its own (player_groups), which qbx_management and other Qbox scripts use. Yecoyz Multijob keeps it the same as its own list:

  • Jobs kept in the multijob are added to Qbox's list, and quits, removals and rank changes reach it too. Switching job or going off work only changes the job the player works, so Qbox's list stays whole.
  • Hires, fires and promotions made through Qbox (qbx_management, /addjob, /removejob) are picked up right away, or on the next login when the player was offline.

Qbox lists at most qbx:max_jobs_per_player jobs per player, and that is 1 by default. Set it to at least Config.MaxJobs in your server.cfg:

cfg
set qbx:max_jobs_per_player 3
Note

With a lower number nothing breaks and no job is lost: jobs that don't fit are still kept and work in the multijob, only Qbox's list (and qbx_management) shows just the job the player works. The server console says so on start.

On Qbox, /addjob and /removejob are qbx_core's own commands. Yecoyz Multijob follows them through Qbox's job list.

Tip

Need help? Open a ticket in the Discord.

Stuck on this step?

Open a ticket in the Discord with what you tried and what you see, and I'll help you get it running.

Ask on Discord
Up nextConfigurationEvery option in config.lua, and the hooks in the open folder.