Skip to content

setGlitchEnabled

Server-side

A standard MTA API with Neon behavior

Adds the Neon-only fastweaponstrafe option to MTA's existing synchronized glitch API.

Syntax

bool setGlitchEnabled(string glitchName, bool enabled)

Arguments

glitchNamestring

Use fastweaponstrafe for Neon's SA-MP-style weapon movement.

enabledbool

Desired synchronized state.

Returns

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

Ownership and lifecycle

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

Important behavior
  • Neon 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 NEON APIS

Continue exploring

Read the system guide →