getOxygen

This function returns the maximum oxygen level available to the player. This is typically used to determine the player's capacity to stay underwater without needing to resurface for air.

Example

local skills = exports.dime_skills
local maxOxygen = skills:GetMaxOxygen()
-- maxOxygen might be, for example, 100, representing the total units of oxygen the player can have.

Returns:

  • oxygen: number The maximum oxygen level the player can have. This value is used to gauge how long the player can remain submerged underwater.

Note: The function directly retrieves the current value of the oxygen variable which should be maintained and updated elsewhere in your system based on gameplay events or player actions that impact oxygen levels.

Last updated