Server Exports
😰 AddStress
-- source: player server id
-- amount: number (1-100)
exports['kartik-hud']:AddStress(source, amount)
-- example: a scary event
exports['kartik-hud']:AddStress(source, 10)Ignored for police when Config.Stress.disableForLEO is on, jobs with type leo on Qbox / QBCore, police or sheriff on ESX.
😌 RemoveStress
exports['kartik-hud']:RemoveStress(source, amount)
-- example: a drink at the bar
exports['kartik-hud']:RemoveStress(source, 15)On Qbox and QBCore, stress is saved in the player's metadata, so it survives relogs. On ESX it lives in the player's state for the current session. Both exports do nothing when Config.Stress.enabled = false.
✨ Custom statuses & buffs
Add statuses and buffs to a player's HUD from the server, for example exports['kartik-hud']:addBuff(source, 'double_xp', { duration = 3600 }). See Custom Statuses & Buffs.