Triggers and Exports

Some functions you can have other scripts use in the HUD.

DISPLAY

  • Manage the hud display. False will hide the HUD and true will show it. This is useful in case you want to make the HUD disappear when another UI is opened or things like that.

exports['neon-hud']:Display(true / false)

STRESS

  • These functions are to be called from any script and will do things to stress of the players. For example, if you want an ITEM to reduce stress...

Reset stress completely:

neon-hud:resetStress

Reduce any amount of stress you want:

neon-hud:removeStress, value

Increase the amount of stress as much as you want.:

neon-hud:addStress, value

Example:

local stressReduction = 20
TriggerEvent('neon-hud:removeStress', stressReduction)

Last updated