cobalt_hud
Status circles and the speedometer.
SetHiddenBy
ClientHides the HUD while any key set by any resource is hidden, and shows it again once all are cleared. Keys are scoped to the calling resource and cleared when that resource stops.
exports.cobalt_hud:SetHiddenBy(key, hidden)| Parameter | Type | Optional | Description |
|---|---|---|---|
key | string | No | |
hidden | boolean | No |
exports.cobalt_hud:SetHiddenBy('cinematic', true)SetStress
ServerSets a player's stress, clamped.
exports.cobalt_hud:SetStress(source, value)| Parameter | Type | Optional | Description |
|---|---|---|---|
source | integer | No | server id |
value | number | No |
exports.cobalt_hud:SetStress(source, 1.0)AddStress
ServerAdds stress to a player, or relieves it when amount is negative; exempt jobs gain none.
exports.cobalt_hud:AddStress(source, amount)| Parameter | Type | Optional | Description |
|---|---|---|---|
source | integer | No | server id |
amount | number | No |
exports.cobalt_hud:AddStress(source, 100)AddAlcohol
ServerAdds alcohol to a player, capped at 100; at 100 the player blacks out and wakes up somewhere else.
exports.cobalt_hud:AddAlcohol(source, amount)| Parameter | Type | Optional | Description |
|---|---|---|---|
source | integer | No | server id |
amount | number | No |
exports.cobalt_hud:AddAlcohol(source, 100)