Garry's Mod

Garry's Mod

55 个评价
RP Weapon Checker
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
9.879 KB
4 月 28 日 下午 12:20
5 月 4 日 上午 11:48
3 项改动说明 ( 查看 )

订阅以下载
RP Weapon Checker

描述
Weapon Checker

- A simple SWEP that allows you to search players for weapons, confiscate them, and return them.

Features:

- Left-click: Search a player for weapons

- Right-click: Confiscate found weapons

- Reload (R): Return confiscated weapons back to the player

- Works based on distance (150 units)

- No menus

Customization & Hooks:

- You can dynamically add weapons to the allowed (donate) or blacklisted lists using hooks:

— hook.Run("AddDonateWeapon", { "weapon_classname" })
— hook.Run("AddBlacklistWeapon", { "weapon_classname" })

Notes:

- Compatible with DarkRP, Sandbox, and custom RP gamemodes.

Important:

- Donate weapons will only appear in the search results if the player has actually equipped them after spawning.

- For example, if a weapon was given to a player on spawn but they never switched to it, it will not show up during a search.
5 条留言
TooManyCharacter 13 小时以前 
This doesn't work with pure sandbox at all. It throws this error:
[RP Weapon Checker] lua/weapons/rp_weaponchecker.lua:132: attempt to call method 'getJobTable' (a nil value)
1. CheckPlayerWeapons - lua/weapons/rp_weaponchecker.lua:132
2. unknown - lua/weapons/rp_weaponchecker.lua:189
3-Главый Буравчик 5 月 7 日 上午 10:09 
Автору руки целовал
Knash89 5 月 6 日 上午 9:08 
no slide no click!
Somik  [作者] 5 月 5 日 上午 9:30 
Нет. Это работает только так, как написано
𝐒𝐇𝐀𝐃𝐎𝐖 5 月 5 日 上午 5:28 
Работает ли это также с NPC? Somik