Stable
3.0.0
UPDATE
- Redesigned entire UI.
- Redesigned handcuffing loading bar.
- Rewrote and optimized arresting/unarresting code entirely using DarkRP hooks.
- Added player inspection system.
- Allows for officers to inspect personal belongings of others while player is handcuffed.
- Shows name, job and wallet.
- Shows a list of all weapons the player has.
- Supports hiding default weapons via DarkRP config
GAMEMODE.Config.weaponCheckerHideDefault
- Supports hiding admin weapons from
GAMEMODE.Config.AdminWeapons
table in DarkRP. - Config table to blacklist any weapon you'd like
CH_ADVArrest.Config.InspectBlacklistWeapons
- Confiscating weapons strips the weapon and notifies the target.
- Added language system.
- English, French & Danish by default.
- Updated file structure to gmodstore guidelines (sorry 2014 addon).
- Fixed config not supporting lua auto-refresh.
- Fixed error attempting to give unknown entity.
- Optimized networking.
- Added a delay on left/right clicking to avoid spam.
- Implemented proper use of canArrest from DarkRP
- Supports
GAMEMODE.Config.cpcanarrestcp
- Supports
GAMEMODE.Config.npcarrest
- Supports
GAMEMODE.Config.needwantedforarrest
- Supports not arresting if no jail positions are set.
- Supports not arresting players who are still spawning.
- Fixed being able to unhandcuff an arrested person. Now defaults to unarresting them if they're arrested.
- Replaced Distance with DistToSqr for optimization.
- Fixed a glitch where handcuffed players could still switch weapons.
- Fixed a glitch with unarrest timer being overwritten.
- Added better security to netmessages.
- Added fallback notification if player is out of range when arresting.
- Added missing validation checks.
- Added configuration that changes player to a specific job when arrested.
- Config to enable/disable
CH_ADVArrest.Config.ChangeJobOnArrested
(disabled by default) - Config job to change to
CH_ADVArrest.Config.JobChangeTo
You will need to delete your old version of the script and replace it with this. You will also need to redo the config, but don't worry, that's quickly done ;)