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

Function

setPlayerACExempt

ServerPlayersTrilogy Hub only

Turns cheat detection off or on for a player. Use it when a resource intentionally gives a player flying, aim assistance or unusual movement, so the protection does not treat it as cheating. Admins are exempt automatically. The exemption lasts until the player leaves the server.

Syntax

bool setPlayerACExempt(player thePlayer [, bool exempt = true])

Arguments

thePlayerplayer
The player.
exemptbool, optional = true
true exempts, false restores detection.

Returns

true on success.

Example

addCommandHandler("superman", function(player)
    setPlayerACExempt(player, true)
    outputChatBox("Możesz latać.", player)
end)

See also