DirkScripts
Docs
Status
Persistent status indicators (hunger, thirst, custom stats).
#lib.registerStatusInfo
lualib.registerStatusInfo('hunger', { title = 'Hunger', icon = 'fa-utensils', value = 100, min = 0, max = 100, timer = true, autoDestroy = true, })
#lib.updateStatusInfo
lualib.updateStatusInfo('hunger', { value = 80 })
#lib.getStatusInfo
lualocal info = lib.getStatusInfo('hunger')
#lib.getStatusInfos
lualocal all = lib.getStatusInfos()
#lib.destroyStatusInfo
lualib.destroyStatusInfo('hunger')
