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

Function

setPlayerSlowMotionEnabled

ServerPlayersTrilogy Hub only

Turns slow motion on or off for a player: on the weapon wheel ("wheel"), on stunts ("stunt") or both.

Syntax

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

Arguments

thePlayerplayer
A player or root.
enabledbool
true turns it on.
kindstring, optional = "all"
"wheel", "stunt" or "all".

Returns

true on success.

Example

setPlayerSlowMotionEnabled(root, false, "wheel")

See also