Installation
Dependencies and setup for Yecoyz Duty.
Get yecoyz_duty1. Dependencies
You need all of these running before yecoyz_duty:
| Resource | Notes |
|---|---|
| ox_lib | Required |
| oxmysql | Required |
| ESX or QBCore | Your framework. Qbox is supported too |
2. Download
Download the latest release from GitHub and extract it into your resources folder.
ImportantDon't rename the resource folder.
3. server.cfg
Start it after the dependencies and your framework:
cfg
ensure ox_lib
ensure oxmysql
ensure yecoyz_duty4. Connect your paycheck system
So that duty state and the salary multiplier affect pay, edit one server file of your framework. yecoyz_duty provides exports for the duty state, the salary multiplier and the off-duty pay settings, and each snippet checks that the resource is running before using them.
| Framework | File to edit |
|---|---|
| qb-core | server/functions.lua (the PaycheckInterval function) |
| qbx_core | server/loops.lua (adds a pay function) |
| es_extended 1.10.10 or later | server/modules/paycheck.lua (StartPayCheck) |
| es_extended before 1.10.10 | server/modules/paycheck.lua (older version of the same logic) |
The ready-made snippets for each framework are on the official setup page. Copy the one that matches your framework.
TipNeed help? Open a ticket in the Discord.