Skip to content

setGlitchEnabled

Server-side

Adds the SA:O-only fastweaponstrafe option to MTA's existing synchronized glitch API.

Syntax

bool setGlitchEnabled(string glitchName, bool enabled)

Arguments

glitchNamestring

Use fastweaponstrafe for San Andreas Online's SA-MP-style weapon movement.

enabledbool

Desired synchronized state.

Returns

The existing MTA success result. fastweaponstrafe is disabled by default.

Ownership and lifecycle

San Andreas Online extends these existing MTA functions. Scripts should detect the extra capability or require a matching San Andreas Online build.

Important behavior
  • San Andreas Online preserves the high-FPS weapon path when disabled and uses a versioned map-info bit for capable clients.

Example

setGlitchEnabled("fastweaponstrafe", true)

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →