Skip to content

JoeSzymkowiczFiveM/qb-lootcrate

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 7, 2022 11:20
September 7, 2022 17:24
September 7, 2022 11:20
September 8, 2022 00:40
September 7, 2022 09:53
December 26, 2022 21:30
September 7, 2022 11:20
September 7, 2022 11:20
September 7, 2022 11:20
September 7, 2022 11:20
September 7, 2022 11:20
September 7, 2022 11:20
September 7, 2022 11:20

Description

This resource lets you create usable crates, that will give the player items that you associate with them.

Features

  • 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
  • Included several CSGO case inventory images, and included 2 creates as an example in the config

Credit

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

Dependencies

Preview

https://streamable.com/24639d

Shared items example

['case_recoil'] 			 = {['name'] = 'case_recoil', 				['label'] = 'Recoil Case', 				['weight'] = 2000, 		['type'] = 'item', 		['image'] = 'case_recoil.png', 		['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A prize awaits inside.'},
['case_prisma2'] 			 = {['name'] = 'case_prisma2', 				['label'] = 'Prisma 2 Case', 				['weight'] = 2000, 		['type'] = 'item', 		['image'] = 'case_recoil.png', 		['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A prize awaits inside.'},

Discord

Joe Szymkowicz FiveM Development