ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPlayerStaminaEnabled

Function

isPlayerStaminaEnabled

ServerPlayersTrilogy Hub only

Checks whether the player gets tired when sprinting (no by default).

Syntax

bool isPlayerStaminaEnabled(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

true if stamina is on.

Example

outputServerLog(tostring(isPlayerStaminaEnabled(player)))

See also