With the recent modifications I have added QB/ESX Support as well as inventory support for QB/PS/OX/QS/CODEM.
This resource lets you create usable crates, that will give the player items that you associate with them.
(Minor fork of: (https://github.com/JoeSzymkowiczFiveM/qb-lootcrate) I mainly modified this just to add a little more flare by incorporating the sound of a spinning wheel. May provide future updates.)
- Support for QB/ESX
- Supports common inventory systems
- Custom weighted chances to drop specific items
- Use local or remote images for spinner
- Create multiple cases, each with the own set of items
- Randomized, server-sided item selection and validation
- JoeSzymkowiczFiveM I copied 100% of this and added some sound for immersion also removed potential copyrighted images.
- Dimka Zheleznov for the UI code and posting it to codepen. Wherever you are, hats off to you. I absolutely copied near-100% to make this work.
['bumpbox'] = {
['name'] = 'bumpbox',
['label'] = 'Bump Loot Crate',
['weight'] = 1000,
['type'] = 'item',
['image'] = 'bumpbox.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Thank you for supporting Castaway <3'
},
bumpbox = { name = 'bumpbox', label = 'Bump Loot Crate', weight = 1000, type = 'item', image = 'bumpbox.png', unique = 'false', useable = 'true', shouldClose = true, combinable = nil, description = 'Thank you for supporting <servername> <3' },