ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. unlockControls

Function

unlockControls

Server and clientInput and controlsTrilogy Hub only

Releases an owner's locks: the given controls, or all of them when the list is omitted.

Syntax

bool unlockControls(mixed ...)

Arguments

...mixed
Server: player, owner[, controls]; client: owner[, controls].

Returns

true on success.

Example

lockControls(player, "kajdanki", { "fire", "sprint", "jump" })
setTimer(function() unlockControls(player, "kajdanki") end, 10000, 1)

See also