This commit is contained in:
Nordi98 2025-07-09 19:36:36 +02:00
parent 7f26844507
commit a2990fe815
120 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,11 @@
-- Update video: https://youtu.be/DeWn_e7cZwE
-- Each time you use an item in config, the number of uses decreases by one. when the number is 0, the item is deleted.
-- example use: if you set the max usage of a repair kit to 5. after repairing the vehicle 5 times the repair kit will be deleted
-- Added items need to be set to 'uniq = true' in item list
config.maxUseAmount = {
testitemuniq = {
amount = 5,
autoDecreases = true -- When set to true, the number decreases by one when you use the item.
--if it is set to false, you need to trigger x event after using the item "TriggerServerEvent("tgiann-inventory:decreaseMaxUseAmount", itemSlot)"
},
}