Decay
Welcome to Decay System
Starting from version 2.2.1, qs-inventory
includes an advanced decay system that we can use independently, if we don't want to use it we can ignore this step and its configuration completely.
The decay system allows us to declare certain items that will rot (losing durability) to the point of breaking and not being able to use them, you even have the chance to have them deleted from your inventory after being broken.
The configuration of this is more than simple, in our qb-core/shared/items.lua
we can add these additional values to the items that we want to have decay:
By adding this to a certain item, our code will look like this:
You can add fewer numbers using 0.005
for example, and the item will break faster!
Last updated