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

Function

setAnalogControlState

An alias of setPedAnalogControlState, kept for older scripts. It takes the same arguments: ped, control name and strength 0-1.

Syntax

bool setAnalogControlState(ped ped, string control, float state)

Arguments

pedped
A player or an NPC.Different type in MTA:SA: string control
controlstring
Control name.Different type in MTA:SA: float state
statefloat
Strength 0-1.Different type in MTA:SA: bool forceOverrideNextFrame = false

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

setAnalogControlState(string control, float state, bool forceOverrideNextFrame = false)

Returns

true on success.

Example

setAnalogControlState(walker, "forwards", 0.5)

See also