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

Function

setGlitchEnabled

ServerWorldIdentical to MTA:SA

Turns a known game glitch allowed on many servers on or off. Available names: quickreload, fastfire (faster firing by cancelling the animation), fastmove (fast crouched movement), crouchbug (shoot-crouch), closedamage (close-range damage), hitanim (hit animation), fastsprint (fast sprint by tapping), baddrivebyhitbox (wrong hitbox in drive-bys), quickstand, kickoutofvehicle_onmodelreplace.

Syntax

bool setGlitchEnabled(string glitch, bool enabled)

Arguments

glitchstring
Glitch name from the list above (case-insensitive).
enabledbool
true = enabled.

Returns

true on success, false for an unknown name.

Example

setGlitchEnabled("quickreload", true)
setGlitchEnabled("fastmove", true)

Notes

State for scripts. The Definitive Edition engine behaves its own way; the value is for scripts (e.g. your own blocks).

See also