- Documentation
- Server functions
- setGlitchEnabled
Function
setGlitchEnabled
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).
enabledbooltrue= 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).