The first part of the code is a few callbacks to handle the basic things. The second part of the code is a simple system for delay in each activation for other scripts.
- Find the script, when you want to add delay system
- Add
ifwith callbackqb-back:delayin place of initializing action - When the activity is started add a trigger
qb-back:Delay:addor addtrueparameter for callback - When the activity is complete add a trigger
qb-back:delay:endwith an optionaltimeparameter (minutes)
/back-reset - is comment for reset you delay system. It is useful, when you need to test something.
- Download the latest version
- Add
qb-backdirectory to theresourcesdirectory on the FiveM server - Add the following directive to your FiveM
server.cfgfile
ensure qb-back
Some useful collbacks have been added to the script to help supervise the scripts.