πŸ”—Exports

This page is for developers who want to combine samy_hud within their resources.

Exports:

-- Adds stress to the player. [Client]
exports.samy_hud:AddStress(Amount)

-- Removes stress from the player [Client]
exports.samy_hud:RemoveStress(Amount)

-- Sets the player's stress to an exact value. [Client]
exports.samy_hud:SetStress(Amount)

-- Toggles the HUD visibility (hide/show). [Client]
exports.samy_hud:ToggleHud()

-- Toggles cinematic mode (black bars at top and bottom). [Client]
exports.samy_hud:CinematicMode()

Compatibilities:

-- Adds stress to the player.
TriggerServerEvent('hud:server:GainStress', amount) --[Client]
or
TriggerEvent('hud:server:GainStress', amount) --[Server]

-- Removes stress from the player
TriggerServerEvent('hud:server:RelieveStress', amount) --[Client]
or
TriggerEvent('hud:server:RelieveStress', amount) --[Server]

Last updated