Koja Scripts
NEW

Stress

Stress Management Functions

Stress

KOJA.Client.GetPlayerStress()

Returns the current stress level of the player.


koja-hud:addStress(value)

Increases the player's stress level by a specified amount.

Parameters:

  • value (number): The amount by which the player's stress will be increased. The value must be a positive number.

koja-hud:removeStress(value)

Decreases the player's stress level by a specified amount.

Parameters:

  • value (number): The amount by which the player's stress will be decreased. The value must be a positive number.

Example Usage:

-- Adding 10 stress points
TriggerEvent("koja-hud:addStress", 10)

-- Removing 5 stress points
TriggerEvent("koja-hud:removeStress", 5)

-- Getting the current player's stress level
local currentStress = KOJA.Client.GetPlayerStress()
print(currentStress)
  • Creating/Editing Locales — A quick guide on editing locales to your likings!
  • Progress Bar — Starts a progress bar and returns a completion status.
  • Text UI — data.input (string): The activation key (e.g., "E").
  • Guides — back to the section overview