Garry's Mod

Garry's Mod

评价数不足
DarkRP Loadout Editor
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
22.870 KB
5 月 16 日 下午 8:13
5 月 17 日 上午 9:39
2 项改动说明 ( 查看 )

订阅以下载
DarkRP Loadout Editor

描述
DarkRP Inventory Manager
A user-friendly tool for server staff to manage job loadouts in real-time. Great for player-ran Events, and temporary loadout editing

Features
• Manage job weapons through a custom UI
• Add/remove weapons in real-time
• Reset jobs to default loadouts
• Remove all weapons from a job
• Dropdown menu for quick default item selection
• Persistent changes across server restarts
• Anti-spam protection
• Sound feedback for actions
• Support for custom weapons
• Whitelist/Blacklist system for jobs

Commands
• !inventorymanager - Opens the main menu
• !invmanager - Alternative command

Default Items Included
• Physics Gun
• Tool Gun
• Camera
• Gravity Gun
• Keys
• Pocket
• Fists

Customization
File Locations
addons/inventory_manager/
├── lua/
│ ├── autorun/
│ │ └── inventory_manager_init.lua
│ └── inventory_manager/
│ ├── cl_menu.lua
│ ├── sv_main.lua
│ └── sh_config.lua

Configuring Permissions
Edit sh_config.lua to modify:
}, RequiredRank = { ["superadmin"] = true, ["admin"] = true, ["your_custom_rank"] = true } }

Job Filtering
Choose between whitelist or blacklist mode:
InventoryManager.Config = { JobFilterMode = "whitelist", -- or "blacklist" FilteredJobs = { ["citizen"] = true, ["police"] = true } }

Adding Custom Default Items
Edit both cl_menu.lua and sv_main.lua:

In cl_menu.lua:
local defaultItems = { ["weapon_physgun"] = "Physics Gun", ["your_weapon"] = "Display Name", }

In sv_main.lua:
local defaultItems = { "weapon_physgun", "your_weapon", }

Customizing UI Colors
Edit the THEME table in cl_menu.lua:
local THEME = { header = Color(0, 0, 0, 200), background = Color(230, 230, 230, 255), button = Color(41, 128, 185), button_hover = Color(52, 152, 219), button_dark = Color(44, 62, 80), button_dark_hover = Color(52, 73, 94), panel = Color(245, 245, 245, 255), text = Color(52, 73, 94) }

Security Features
• Rank based access control
• Anti-spam protection
• Weapon validation
• Rate limiting
• Maximum weapon limit per job

Installation
1. Subscribe to the addon
2. Copy to your server's addons folder
3. Configure for your server
4. Restart your server

Troubleshooting
If weapons aren't saving:
• Check data folder permissions
• Verify inventory_manager_loadouts.txt exists
• Ensure proper file permissions

If menu won't open:
• Verify user has correct rank
• Check console for errors
• Ensure config file is properly formatted

Support
For issues or suggestions:
• Contact via Steam
• Post in comments section