UPDATE
- Fixed an error when setting a bail that would happen clientside.
UPDATE
- Added DarkRP.formatMoney to bail payouts and menu.
- Completely rewrote config files to be in unique tables.
- Added config CH_ADVArrest.Config.StripOldWeapons which is on by default. Means default darkrp arrest, unarrest and stunstick is stripped.
- Added config CH_ADVArrest.Config.NotificationTime which defines amount of seconds the notifications display.
- Added config CH_ADVArrest.Config.FreezeTimer which freezes the target so you can arrest them after handcuffing.
- Added config CH_ADVArrest.Config.BatonDamage and it's just the damage given to the player when hit with the police baton.
- Left & Right click now has the same function on the police baton. Both will hit target with the specified delay.
- Added config CH_ADVArrest.Config.BatonHitDelay for seconds delay on the police baton.
The config file is different. Reinstall the script and manually copy/paste your values from the config.
As always open a support ticket if you have any issues after updating, thanks.
- Added config option ARREST_MinBail as per request from a customer. You can set the minimum bail an officer has to set.
- Fixed an error that would happen if you had other addons that used the playerArrested darkrp hook.
It was a simple matter for a lowercased letter in getting the arrester. This would cause the hook to error with their script, and the code would break at that point. The player would not get teleported to fail and other code also wouldn't run. Update if you have experienced problems with that.
All media has been updated, check it out!
- There are no longer 2 weapons (arrest and unarrest). It is now combined under one weapon called "Handcuffs". It's a custom model with custom animations. You can use it to handcuff people (right click) or arrest/unarrest with left click. It works like the two sticks did before, but just one weapon.
- Completely redesigned the gui to look more up-to-date. Sorry, my vgui skills are not that good <3
- Updated handcuffs with more notifications. For example if there is no player in sight, or the player is not handcuffed the cop will get a notification.
- Lots of spelling mistakes have been corrected.
- The handcuff model also has custom animations for both arresting and handcuffing. All credits to Im Not Meow Meow for this.
- The display above players head when handcuffed has been updated. New font, new colors and it flashes in red color now.
- Added a custom baton weapon for the police jobs. It basically does what the default DarkRP stunstick does, but this has a custom model and looks realistic.
- Removed config option ARREST_StripOldArrestStick.
- Arrest stick, unarrest stick and stunstick is now automatically stripped from everyone. Instead police get handcuffs and a police baton that works similar to the stunstick.
- Fixed a few things here and there.
I would advise that you completely delete the current installation you have made and freshly installs the addon again.
It would also be the best idea to just redo the config instead of copy paste.
Thanks to Owain for the new banner and uploading the content to the workshop! Enjoy!
- Made small adjustments to yesterdays update. Again, if everything works fine you do not need to update!
- Solved a problem where it would for some users fail to arrest non-cops because it would think they were cops.
If you have no issues with the addon at this moment, you do not need to update!
This update adds nothing. The only thing that has changed is that the folder name is now lowercased and therefor supported for Linux. This makes it easier for new buyers, as they will not have to rename the folder if they are on a Linux server host.
If you already have the addon, just keep using it and do not worry about this update. It's just to help new buyers with an easier installation.
- DarkRP 2.4.3 support has been dropped. This means it is no longer included with the download. The current state of the script on 2.4.3 is unknown.
- Fixed crashing issues with the latest GMod update.
- Fixed freezing the criminal when trying arrest them before handcuffing them. They are now only freezed upon arresting when handcuffed.
- Fixed police being able to handcuff eachother. This is based on the DarkRP configuration GAMEMODE.Config.cpcanarrestcp.
- Added a "security" so the menu should not open multiply times and thus cause errors.
- Renamed the PlayerDeath hook as it was too common and might interfer with other addons.
- Fixed error on startup with the latest Garry's Mod update.
There are still some problems out there which I am aware of, they will be sorted when I have time for it. There are some problem with no testers, and no personal time which I need to sort out.
If you are wondering why the description now says 2.6.0 instead of 2.5.0 or 2.5.1 it's because 2.5.0 and 2.5.1 is broken. DarkRP 2.6.0 is the latest and recommended version. I am moving towards cutting old versions of my support chain to focus on only the latest version. It is becoming a mess.
- Fixed a problem with the unarrest stick.
Quick hotfix for the latest version.