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

Function

setAimAssistEnabled

ServerWorldTrilogy Hub only

Allows or forbids aim assist for every player. false forces free aim (the crosshair does not snap to targets) and the game menu option is locked. Useful on PvP servers where controller and mouse players should be on equal terms.

Syntax

bool setAimAssistEnabled(bool enabled)

Arguments

enabledbool
true = aim assist allowed (default), false = free aim only.

Returns

true on success.

Example

addEventHandler("onResourceStart", resourceRoot, function()
    setAimAssistEnabled(false)
end)

See also