Setup
Steps for setting up your zyke_status resource.
ESX Guide
QBCore Guide
For QBCore, it is slightly more complicated because of their setup. The exact steps and lines may differ based on your version and your hud of choice, but the events we need to remove are usually the same.
We offer two approaches, depending on if you want QB to still handle some values, or completely rely on our system. However, we do recommend that you follow the "Full Control" giode so that there are no duplicate drains/effects etc.
Basic Compatibility
To get the basic compatibility going, you will need to modify the SetMetaData function. This allows us to catch any attempts to modify your status, which then dispatch it to our system to handle the rest. Our system will execute everything needed for the rest of your server to proceed as normal.
Modify Player Method
Navigate here and replace the entire function with the code provided below (L274-L281).
Avoid Duplicate Calls
Navigate here and disable the two events (L213-L225). This is simply to avoid duplicate calls, and we ensure the best performance by not making any workarounds and just disabling them entirely. This step may differ based on your consumable resource on your server, but should be the same event names despite what resource they are in.
Full Control (Remove QB drains/additions/effects)
[Gaining Stress] Navigate here and remove the entire event (L20-L40).
[Stress Relieving] Navigate here and remove the entire event (L42-L62).
[Hunger & Thirst Drain] Navigate here and replace the entire event with the code provided below (L151-167).
[Stress Effects] Navigate here and remove the entire thread (L977-L1011)
Last updated
Was this helpful?