UPDATE
- Corrected misinformation in config notes.
- Cached LocalPlayer when used multiple times in one function.
- Removed all use cases of table.HasValue and replaced with a more optimized solution.
- Swapped Initialize hook with more reliable solution.
- Using ipairs for sequential loops.
- Replaced global function names.
- Removed a lot of loops and replaced with a more optimized solution.
- Added config
CH_ArmoryRobbery.Config.NotificationTime
- Using player.GetCount now as a more optimized solution.
UPDATE
- Completely redone the UI.
- Optimized the addon.
- Removed an unoptimized Tick hook and replaced with a proper solution.
- Use ipairs.
- Removed redundant code.
- Added distance checks on 3d2d.
- When trying to deposit a weapon that you don't have it will notify you accordingly.
- When trying to withdraw a weapon that you already have it will notify you accordingly.
- When on a weapon withdraw cooldown it will now tell you exactly how long you have to wait.
- Changed font to Roboto Lt.
- Added reward notification when killing a robber.
- Fixed rewarding players if they suicides as a robber.
This update requires you to fully reinstall the addon. You can save your config and copy + paste it back afterwards.
UPDATE
- New file structure
- Redone the entire config.
- No longer using global variables.
- Removed any usage of the old usermessage library and replaced it with the optimized net library.
- Replaced Distance with DistToSqr for optimization.
- Removed
util.RobberyFormatNumber
function. - Properly using
DarkRP.formatMoney
andstring.Comma
now. - Fixed old IsValid practices.
- Using Initialize hooks properly now.
- Removed unused fonts.
- Renamed fonts that could possible conflict with workshop addons.
- Minor updates to the weapon menu.
- You can now replace the police armory without restarting the server.
This update requires a full reinstallation of the addon and redoing config. This update is not a 100% optimization of the addon, but it is certainly better than what it used to be. First update in multiple years and the addon was released in 2014. I hope everyone is happy with the continuos updating of old addons.
If there are any problems with the new update, please submit a support ticket, thanks!
Enjoy!
- Fixed some spelling mistakes.
- Fixed an exploit with the retrieve weapon function in the armory.
Small update here, but I advise everyone to download the new version. A pretty embarrassing mistake made it possible for people to abuse the retrieve weapon function, even when they were not gov teams. I have fixed this now because a kind person made me aware of the exploit.
- Fixed configuration errors with the new update, sorry but you must update one more time!
- Armory design has been updated.
- Modified default config values.
- Updated config files to more unique names (please update your config and copy old values over!)
- Fixed conflicting problems with my bank robbery system 1.
See new media for updated images of how the armory looks now. I will hopefully get a new banner made soon as well!
- 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.
- Foldername lowercased to support Linux users better.
- Fixed the exploit where you could retrieve a weapon from the armory from any distance.
- Added a specific 2.5.1 version. If anyone is using 2.5.1 and has problems running the 2.5.0 version of the script, try to update it. Anyone with no problems can just ignore this update.
- Added a deposit function. This means that police officers can deposit their weapon.
- Updated the armor function so it only gives a notification when armor is below 100.