Garry's Mod

Garry's Mod

237 ratings
Simple Lootbox System [Customizable]
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
109.880 KB
Mar 13, 2023 @ 1:12am
Mar 17, 2023 @ 6:56pm
4 Change Notes ( view )

Subscribe to download
Simple Lootbox System [Customizable]

Description
This addon adds a lootbox that can be customized.

All settings are in Options -> Simple Lootbox System -> Options.

There you can change the parameter of the chance of drop an item, and also edit items that may drop from the lootbox (You can only add an entity, any vehicle or prop will create an error. In the future I will add support for transport and prop's).

I tested the support with Gredwitch Base, TFA Base, Arctic Night Vision, and everything worked stably without any errors. So I think any others will also work stably (Again, except for the prop's and vehicles)

Added 4 console commands:

lb_dropchance 1-100 (Changes the drop chance, the same as the slider in Options).
lb_menu (Opens the lootbox settings menu).
lb_enabledropnpc 0-1 (Allows you to enable or disable the drop of a lootbox with an npc after death)
lb_npcdropchance 1-100 (Changes the chance of dropping a lootbox from an npc)

The loot box itself is stylized with white edging and when pointing at it, an inscription appears showing the chance of falling out.

This is one of my first addons, and for sure there are bugs in it that I didn't notice, so I will be very grateful if you write about errors, I will try to fix them from time to time. (Also sorry for my bad english :D)
67 Comments
HVenom Aug 10 @ 11:46am 
can you add an option for the lootboxes dropped by NPCs to disappear over time?
SoftRoom May 10 @ 9:24am 
спасибо большое , крутой мужик
GamePad  [author] May 10 @ 8:46am 
Механики для копирования и передачи конфигов внутри игры я не реализовывал, единственный вариант копирования и сохранения конфига это скопировать файл "lootboxdata.json", находящийся по пути GarrysMod\garrysmod\data. Их можно сохранить в отдельную папку и время от времени заменять эти файлы, главное оставлять имя как в изначальном файле чтобы аддон нашел файл.
SoftRoom May 10 @ 8:16am 
а можно скопировать конфиг предметов ?
🌸Дед Хаггис ® ⁴² Jul 25, 2024 @ 9:33am 
И хотелось-бы чтобы можно было выбрать как будет отображаться коробка.
Типо вместо огромной коробки будет маленькая коробка.
Проще говоря чтобы в настройках можно было-бы изменить модель самой коробки.
🌸Дед Хаггис ® ⁴² Jul 25, 2024 @ 9:31am 
Мод прикольный но нужно чтобы коробка не имела коллизии с NPC.
челол Jun 7, 2024 @ 2:35pm 
Как при заходе в игру сделать так чтобы лутбоксы были выключены? Не хочу постоянно заходить вручную выключать при заходе на карту а когда проходишь карты с телепортом на другие карты в сюжете халфы например сборник карт то очень раздражает.
[EGN] Blackfire Jun 3, 2024 @ 9:53pm 
hey gamerpad i have a question, can you change the model that the loot is or is it just a box
Малыш Камыш May 20, 2024 @ 10:58am 
И было бы круто если бы дроп падал без коробки. (Или она сама открывалась)
Малыш Камыш May 20, 2024 @ 10:57am 
А можно сделать авто-вставку конфига?