Garry's Mod

Garry's Mod

56 个评价
Slot Limiter
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
10.016 KB
6 月 19 日 下午 2:27
6 月 22 日 上午 3:49
4 项改动说明 ( 查看 )

订阅以下载
Slot Limiter

在 MightyX3N ✝ 的 1 个合集中
Addons by MightyX3N
43 件物品
描述
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
17 条留言
Dorotpole 7 月 29 日 上午 2:30 
would it be possible to make the pickups manual?

I use vmanip manual pickup, and with this mod weapons are being picked up automatically. Plus my left hand is not visible on them sometimes.
beermajor 7 月 6 日 下午 12:56 
Is there any way to disable chat hints?
MightyX3N ✝  [作者] 6 月 24 日 下午 4:14 
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 6 月 24 日 下午 4:02 
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 ✝  [作者] 6 月 23 日 下午 12:41 
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 6 月 23 日 上午 8:15 
somehow fixed itself. I have no idea what I did. Thanks for listening though.
MightyX3N ✝  [作者] 6 月 23 日 上午 7:02 
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 6 月 23 日 上午 5:44 
No errors. Not sure why it does this.
MightyX3N ✝  [作者] 6 月 22 日 上午 9:10 
Do you get any errors?
i just tried to install arc9 weapons and everything works fine for me
Armalad 6 月 22 日 上午 8:28 
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.