Setup
Steps for setting up your zyke_status resource.
Last updated
Was this helpful?
Steps for setting up your zyke_status resource.
Last updated
Was this helpful?
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.
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.
Navigate 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.
[Gaining Stress] Navigate and remove the entire event (L20-L40).
[Stress Relieving] Navigate and remove the entire event (L42-L62).
[Hunger & Thirst Drain] Navigate and replace the entire event with the code provided below (L151-167).
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.
[Stress Effects] Navigate and remove the entire thread (L977-L1011)
Navigate and paste in the snippet below the line you are referred to.
Navigate and remove the event (L159-171)
Navigate and remove the event (L180-192).
[Gaining Stress] Navigate and remove the entire event (L25-L47).
[Stress Relieving] Navigate and remove the entire event (L49-L71).
[Hunger & Thirst Drain] Navigate and remove the entire thread (L15-L23).
[Stress Effects] Navigate and remove the entire thread (L884-L918)