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

Function

getControlLocks

Server and clientInput and controlsTrilogy Hub only

Returns the list of locks on a control as "resource:owner", for diagnostics. The server and the client have separate locks.

Syntax

table getControlLocks(mixed ...)

Arguments

...mixed
Server: player, control; client: control.

Returns

The list of locks (empty if the control is free).

Example

for _, lock in ipairs(getControlLocks("fire")) do
    outputChatBox("fire zablokowane przez " .. lock)
end

See also