cfxregame
Gold Elite
QB-DECAY
This is a proof-of-concept for a server-side, qb-core item reduction system that uses a cron program and runs with or without players. This can adjust the attributes of items in player inventories, warehouses, glove boxes, and chests. This POC is only to provide the corruption mechanism and will not include code changes needed elsewhere for this sanity check and enforcement; It's up to you.
Set the times of the day you want the corruption to happen, this is relative to the server's time. Then, in your QBShared.Items, add a gradient value to each item you want affected, with a floating point amount that an item will decay to. This degradation will occur at any point in the day you set in the configuration
This is a proof-of-concept for a server-side, qb-core item reduction system that uses a cron program and runs with or without players. This can adjust the attributes of items in player inventories, warehouses, glove boxes, and chests. This POC is only to provide the corruption mechanism and will not include code changes needed elsewhere for this sanity check and enforcement; It's up to you.
Set the times of the day you want the corruption to happen, this is relative to the server's time. Then, in your QBShared.Items, add a gradient value to each item you want affected, with a floating point amount that an item will decay to. This degradation will occur at any point in the day you set in the configuration
Dependencies
- Hidden link for visitors, to see Log in or register now.(Written for ver. 1.8.7, I know they’ve done a syntax change since then.)
- Hidden link for visitors, to see Log in or register now.