Skip to content

Releases: jgscripts/jg-stress-addon

v2.0.2

29 Apr 17:54
7599c7b

Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.0.2

v2.0.1

08 Apr 14:59
aef9387

Choose a tag to compare

What's Changed

v2.0

07 Apr 12:02
07438d1

Choose a tag to compare

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 minForSpeeding to 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:
    • stress
    • vehicle
    • weapon
    • effects
    • whitelist
  • Moved config to config/config.lua
  • Moved server code to server/server.lua
  • Updated fxmanifest.lua for the new structure
  • Version bump from 1.4 to 2.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.lua to config/config.lua

v1.3

25 Jul 21:50
df9441e

Choose a tag to compare

Fix for Qbox regarding the job table.

v1.2

17 Jul 00:13
00f5013

Choose a tag to compare

Sorry for not versioning this earlier.

Thanks @Scorpion7162 for the v1.1 and v1.2 code changes.