Skip to content

devawayofficial/dw_lootcrate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update 6/29/2024

With the recent modifications I have added QB/ESX Support as well as inventory support for QB/PS/OX/QS/CODEM.

Description

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.)

Features

  • 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

Credit

  • 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.

Supported frameworks

Supported Inventorys

New Preview

dw_lootcrate

Shared items example

	['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' },

Discord for support

Original creator

Languages

  • Lua 56.1%
  • CSS 21.9%
  • JavaScript 17.4%
  • HTML 4.6%