如果您希望 decay 系统工作,请阅读以下信息,否则它将不起作用。
您需要为文件中的所有项目添加一个衰减值,该变量代表衰减所需的天数。qb-core/shared/items.lua
-- decay = The number of days it takes for an item to decay
-- delete = If set to true, the item will be removed once it decays
["decay"] = 28.0, ["delete"] = true
['sandwich'] = {['name'] = 'sandwich', ['label'] = 'Sandwich', ['weight'] = 200, ['type'] = 'item', ['image'] = 'sandwich.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Nice bread for your stomach', ["decay"] = 3.0, ["delete"] = true},
在此示例中,三明治项目需要 3 天才能腐烂,一旦腐烂,就会被删除。
© 版权声明
THE END
- 最新
- 最热
只看作者