UPDATE
- The back-end for configuration is completely recoded.
- Added the opportunity to restrict by usergroups.
- Added support for restricting armory items by MRS rank.
- Renamed everything to a unique naming convention.
- Fixed support for Glorified Levels.
- Improved level support code and added meta function.
- Cached properly.
- Optimized function to get all government officials.
- Removed table of RequiredTeams and now using GovernmentTeams table for all government teams and counts.
- Added console command to get all info of current active weapon.
- Console command for admins
policearmory_printwepinfo - This will print everything you need to know about the weapon, so you can easily add new ones.
- Config
CH_Armory_Locker.Config.RetrieveCooldownis now in seconds instead of minutes. - Made multiple adjustments to the UI.
- Changed font to Open Sans.
- Fixed margins.
- Rate limited necessary net messages.
- Rewrote randomizing items for robberies on armory.
This update completely changes how configuring items is done.
There is now more options when configuring items, including MRS support. I also put a lot of effort into optimizing the code.
Enjoy!
UPDATE
- Patched exploits.
I would highly recommend that everyone updates to this version because vulnerabilities that was reported to me recently are now fixed!
I wanted to refactor more code and completely redo the way you configure the addon, but I decided to release this update without those changes, in case someone does not wish to update to a new config structure.
The next update will include refactoring of code, redoing the entire weapons config and restriction system, and adding compatibility with MRS.
UPDATE
- Fixed rare error when dropping weapons.
Updated file: lua/armory_locker/server/armory_locker_weapons.lua
UPDATE
- Added OnPlayerChangedTeam hook to the fix in regards to dropping weapons.
Updated file: lua/armory_locker/server/armory_locker_weapons.lua
UPDATE
- Recoded the canDropWeapon logic to be more stable. This might also fix compatibility issues with some addons.
Updated file: lua/armory_locker/server/armory_locker_weapons.lua
UPDATE
- Changed file initialize load order.
- Removed redundant code.
- Added support for Elite XP System (EXP2)
- Config
CH_Armory_Locker.Config.EXP2SystemEnabled - Added support for DarkRP Essentials and Brick's Essentials
- Config
CH_Armory_Locker.Config.EssentialsXPSystemEnabled - Added support for GlorifiedLeveling
- Config
CH_Armory_Locker.Config.GlorifiedLevelingXPSystem - Added bLogs support.
- Retrieve items.
- Deposit items.
- Steal items from robbery.
- Successful lockpicking.
- Replaced depreciated self.Owner with self:GetOwner() for the lockpick swep.
- Replaced depreciated self.Weapon with self for the lockpick swep.
- Improved overhead 3d2d text quality.
- Removed all globals.
- Minor optimization to the UI code.
- Change table of armory lockers to single variable since there is never more than one armory locker.
- Removes unnecessary loops in code.
UPDATE
- Use the available gmod global constants instead of creating my own.
- Updated UI code.
- Optimized parts of the addon.
- Added outline to "Lockpicking..." text for the lockpick weapon.
UPDATE
- Fixed a glitch where it equipped armory lockpick on respawn/job change and glitched.
- Fixed an error with the armory lockpick.
- Removed missing debug print.
- Fixed config not supporting lua autorefresh.
- Added better explanation for how categories work within the config file.
- Added support for Vronkadis DarkRP Level System
- Config option
CH_Armory_Locker.Config.DarkRPLevelSystemEnabled - Added support for Sublime Levels
- Config option
CH_Armory_Locker.Config.SublimeLevelSystemEnabled - Experience points given on successfully lockpicking and stealing items from the police armory.
- Config option
CH_Armory_Locker.Config.XPSuccessfulLockpick
UPDATE
- Fixed scaling issues on 2560 x 1080
- Added FAS:2 weapons by default. As any other default weapon pack they can simply be removed from the config file.
- Fixed a potential network exploit.
UPDATE
- Fixed missing validation check on timers.
- Fixed lights on armory (red/green) switching when they shouldn't.
- Implemented a failsafe in-case users would disconnect while viewing the armory contents as a police officer causing a lot of errors.
UPDATE
- Removed debug prints
- Updated CW weapons in default config.
- Fixed an error where a black box appeared in the left corner if HideRestrictedItems was enabled.
UPDATE
- Fixed another issue with the armory lockpick and government team requirements.