Closed Demigod916 closed 2 months ago
Which is correct? Are these values supposed to be clamped to 100?
Which is correct? Are these values supposed to be clamped to 100?
no clue, but it doesnt really make sense for hunger and thirst to be infinite? maybe a config for max cap defaulted to 100 is good
Which is correct? Are these values supposed to be clamped to 100?
looks like clamped to 100 is the intended behavior in qb-core
Description
This fixes an issue where the statebag statuses were clamped to 0-100 while the meta statuses wcould go over 100. causing them to become desynced. this would cause huds that use metadata values to say that players had more hunger/thirst than they really had and they would start dying for no apparent reason. it will now clamp both to 100.
repro here in issue #457
Checklist