Stable1.1.2
UPDATE
- Added a new feature that draws the location and distance to the crate for police officers when it is being robbed.
- You can enable or disable this feature with
CH_SupplyCrate.Config.DrawCrateOnMapRobbery - Fixed error if physics was non-existing when spawning supply crate.
- Replaced
player.GetAllwithplayer.GetCountwhere possible for optimization. - Removed unnecessary loops and replaced with more optimized solutions.
- Localized an overlooked global function.
- Cached some variables for optimization.
- Remove all
table.HasValueand replaced by proper optimized solution. - Removed config table
CH_SupplyCrate.Config.RequiredTeams. Your police/government teams are now all defined inCH_SupplyCrate.Config.GovernmentTeams - Recoded function to check if ranks can rob the crate. Removed loops and
table.HasValuefor optimization.
A lot of optimization and improvements in this update. I recommend updating and do a full reinstall.