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

Function

isPlayerSlowMotionEnabled

ServerPlayersTrilogy Hub only

Checks whether slow motion is on for the player: on the weapon wheel ("wheel"), on stunts ("stunt") or both ("all").

Syntax

bool isPlayerSlowMotionEnabled(player thePlayer [, string kind = "all"])

Arguments

thePlayerplayer
The player.
kindstring, optional = "all"
"wheel", "stunt" or "all".

Returns

true if on.

Example

if isPlayerSlowMotionEnabled(player, "wheel") then
    outputChatBox("Koło broni spowalnia czas.", player)
end

See also