Releases: jgscripts/jg-stress-addon
Releases · jgscripts/jg-stress-addon
v2.0.2
What's Changed
- Fix stress tracking bugs and tighten config by @Scorpion7162 in #10
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- Fix incorrectly imported files by @Scorpion7162 in #9
v2.0
Changes
- Complete codebase rewrite and restructure
- Moved from a mostly single-file setup to a modular file layout
- Fixed seatbelt stress threshold logic for non-boat vehicles -> V1 incorrectly applied
minForSpeedingto all vehicles regardless of seatbelt state; v2 correctly checks (vehClass == 8 or hasSeatbelt) - Job whitelist lookup converted from
lib.table.contains()(O(n) per check) to a pre-built hash map (O(1)) - Added server exports for easier integration:
getStress(src)gainStress(src, amount)relieveStress(src, amount)
- Improved job whitelist handling
- Improved framework compatibility and player handling
- Split client logic into separate files:
stressvehicleweaponeffectswhitelist
- Moved config to
config/config.lua - Moved server code to
server/server.lua - Updated
fxmanifest.luafor the new structure - Version bump from
1.4to2.0
Upgrading
- If you customised V1, you may need to re-apply changes due to the new file structure
- Config path has changed from
config.luatoconfig/config.lua
v1.3
Fix for Qbox regarding the job table.
v1.2
Sorry for not versioning this earlier.
Thanks @Scorpion7162 for the v1.1 and v1.2 code changes.