Stable1.0.4
UPDATE
- Fixed a nil error with the armory lockpick.
A minor hot-fix to the last update. File that has changed is: lua/weapons/armory_lockpick/shared.lua
Stable1.0.3
UPDATE
- Added a restriction system to items.
- Added config
CH_Armory_Locker.Config.UseJobRestrictionsto enable/disable the restrictions. - You can configure which jobs can access which items at the bottom of the config file in shared/armory_locker_config.lua.
- Configuration
CH_Armory_Locker.Config.HideRestrictedItemsto display/not display items which are restricted for other jobs. - Removed forgotten debug prints.
- Renamed EntType to Category in the config for armory weapons.
- Added a debug command to print Name, Class and Model for currently equipped weapons. Useful when adding new weapons to the armory.
- Command is
armory_printweaponinfo - Added a configuration to set a required amount of government teams. It's called
CH_Armory_Locker.Config.RequiredGovTeams - Added a new table of teams called
CH_Armory_Locker.Config.RequiredTeams. - Teams that are counted towards the total of government teams are put in the
RequiredTeamstable. - When depositing a weapon it will now select either the physgun or gravgun, depending what the player has.
- Added all CW weapons (25 new weapons) to the script configuration by default. Huge thanks to The L.O.A Player
- Set up restrictions for all currently support items by default.
The most eye-catching should be the restriction system. You can setup unique permissions for each item. If you do not set up permissions for an item, it will automatically be available for any job that can access the police armory by default.
You can set the new config CH_Armory_Locker.Config.RequiredGovTeams to set amount of required government teams. You can set it to 0 for no limit.
Stable1.0.2
UPDATED
- Restricted being able to drop weapons that have been retrieved from the police armory.
- This should also stop players from putting it in the inventory for inventory scripts.
Stable1.0.1
UPDATE
- Fixed applying cooldown on the armory if you take health/armor, but already have maximum.
- Fixed scaling of some UI on smaller resolutions.
Stable1.0.0
Initial version