Garry's Mod

Garry's Mod

37 ratings
Slot Limiter
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
10.016 KB
19 Jun @ 2:27pm
22 Jun @ 3:49am
4 Change Notes ( view )

Subscribe to download
Slot Limiter

In 1 collection by MightyX3N
Addons by MightyX3N
32 items
Description
Join the official X3NAddons Discord Community for updates & support: https://discord.gg/USukDAH7Cu

Inventory Slot Weapon Limit with Exclusions

Introducing the **Inventory Slot Weapon Limit with Exclusions** addon for **Garry's Mod [Sandbox/DarkRP/Custom]**! This addon lets server admins limit the number of weapons a player can carry per inventory slot, while allowing certain weapons to be excluded from these limits. Perfect for maintaining balanced loadouts with flexible exceptions.




Features:
  • Per-Slot Weapon Limits: Set custom limits for each weapon slot independently (slots 0 to 10 supported).
  • Exclusion System: Add weapons to an exclusion list so they bypass inventory limits.
  • Easy Commands: Use simple console commands to set limits, add/remove exclusions, and view current settings.
  • Persistent Settings: Limits and exclusion lists are saved to the server’s data folder and persist across restarts.
  • Lightweight & Efficient: Minimal performance impact while enforcing inventory balance.




Why Use This Addon?
  • Balanced Gameplay: Prevent players from hoarding too many weapons in a single slot.
  • Flexible Management: Exclude special weapons or class-specific gear from limits.
  • Simple Setup: Quick to configure via commands without editing files.
  • Supports Custom Gamemodes: Works with Sandbox, DarkRP, and custom gamemodes.




Usage Tips:
  • Set Limits per Slot: Use "inv_limit_slot <slot> <limit>" to define how many weapons can be carried in each slot.
    ("Note: slot 1 is slot 0, slot 2 is slot 1 and so on")
  • Manage Exclusions: Add or remove weapons from the exclusion list using "inv_exclusion_add" and "inv_exclusion_remove".
  • View Settings: Use "inv_limit_slot_list" and "inv_exclusion_list" to check current limits and exclusions.
  • Default Behavior: Slots without a set limit are unlimited by default.
  • Gamemode Compatibility: This addon does NOT override weapons given by the gamemode (tested in Sandbox; assumed to respect default gamemode weapons).
  • Drop weapon console command: Use +dropweapon to drop your current weapon. Bind it to a key like this: bind g +dropweapon

“This is how the slot numbering works internally (slot 1 is actually slot 0, slot 2 is slot 1, etc.), and unfortunately there’s no simple way to change it. I could try to ‘trick’ the system by adjusting the slot numbers behind the scenes (for example, if a player types 1, the code treats it as 1 instead of 0), but that would add unnecessary complexity and isn’t worth the effort.”




Notes:
  • Slot Range: Supports slot numbers from 0 up to 10 to accommodate custom gamemodes.
  • Permissions: Commands require admin privileges to prevent abuse.
  • Compatibility: Compatible with most weapon addons following standard GMod slot conventions.




Credits:
  • Creator of Unlimited Handgun Ammo Addon: MightyX3N




TAGS:
  • Inventory
  • Weapons
  • Limits
  • Admin Tools
  • Sandbox
  • DarkRP
  • Gameplay
  • Customization
  • Server Management
16 Comments
beermajor 6 Jul @ 12:56pm 
Is there any way to disable chat hints?
MightyX3N  [author] 24 Jun @ 4:14pm 
not sure why it would do it, my addon dont change how weapons is picked up it just adds a slot limit,

it happens for me too, i will see if i can fix it, but as im not sure what they issue would be i might not be able to fix it
CollChuuk 24 Jun @ 4:02pm 
Doesn't interact well with CPickup and Smooth Pickup . If a slot is available, the weapon will be automatically picked up, and the animation will not play.
MightyX3N  [author] 23 Jun @ 12:41pm 
happy to hear it fixed it self, if there is any issues in the future dont hesitate to ask :)

i have made a discord server if you want to join it, members will get early access to future addons before they are released on the workshop https://discord.gg/USukDAH7Cu
Armalad 23 Jun @ 8:15am 
somehow fixed itself. I have no idea what I did. Thanks for listening though.
MightyX3N  [author] 23 Jun @ 7:02am 
i would say its very likely some old addon that is creating the issues, the easiest fix would be to delete the game, and before you install the game again also go in and delete the garrysmod folder as there will be files left over,
Armalad 23 Jun @ 5:44am 
No errors. Not sure why it does this.
MightyX3N  [author] 22 Jun @ 9:10am 
Do you get any errors?
i just tried to install arc9 weapons and everything works fine for me
Armalad 22 Jun @ 8:28am 
Yeah, I've tried the vmanip one, Simple Manual Pick Up, and Cpickup. The weapons I'm using are arc9 but it seems to happen for vanilla weapons as well.
MightyX3N  [author] 22 Jun @ 7:45am 
it works fine for me, and i have many different addons installed, some addons do not remove all their files when unsubscribed

what weapons are you trying to use maybe they have some scripting that breaks, either the slot limter addon, or the cpickup addon

have you tried other manual pickup addons?