Garry's Mod

Garry's Mod

Not enough ratings
Tood's Weapons Lootbox v2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
6.327 KB
20 Nov, 2019 @ 7:53pm
3 Jan, 2023 @ 10:37am
3 Change Notes ( view )

Subscribe to download
Tood's Weapons Lootbox v2

Description


ALL SUPPORT IS NOW HANDLED VIA MY NEW DISCORD: discord.gg/YSzU6MY2Yb

Here we have a rather simple but fun lootbox system.

This lootbox can be used to give players weapons. You need to do a certain amount of damage to the NPC's max health to qualify for a lootbox.

UPDATE v2 brings a new damage system and rarity system to these lootboxes, you can now choose how much damage a player needs to do to qualify for the lootbox, and for the rarity you can now set up specific tables of weapons and give each table a rarity!
_______________________________________________________________



Once subscribed, extract the addon, navigate to toods_weapons_lootbox_v2/lua/autorun/sh_weapons_config.lua and you will find a nice selection of config options for you to edit to your preference.
If you're still struggling with the config then I've attached a YouTube video where I detail the config and how the features work in the addon.
_______________________________________________________________



Tood - Coding, designing and creating the script itself.
_______________________________________________________________



You have full permission to edit my code to preference but must be kept at personal use only for your own server.

You do not have permission to reupload this or claim this script as your own.
If you wish to use my script in another script then do not merge the files with your own, simply add my script as "Required Content".
_______________________________________________________________

Update v2
Config has been redone and old config will no longer work.
- Added option to change lootbox model.
- Added option to change how long it takes for a lootbox to despawn.
- NEW FEATURE: Added option to change how much damage needs to be done to qualify to open a lootbox.
- NEW FEATURE: Added simple table to allow you to add weapons to individual tables and give those tables rarities.
- Added restrictions so players can't use the lootbox unless they deal enough damage.
- Added custom chat prints for when the player receives a weapon or if they never dealt enough damage.
_______________________________________________________________

Want to donate and support my Development Progression? Click the image below <3
[paypal.me]
_______________________________________________________________


If you have any questions, comments or concerns then drop by my discord linked above and I'll be more than willing to help you out however I can.
Enjoy!!
1 Comments
SuccMeSolidTV 30 Aug, 2023 @ 6:48pm 
possible for it to work with just any entity in the box as well?