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
glitchNamestringUse fastweaponstrafe for San Andreas Online's SA-MP-style weapon movement.
enabledboolDesired 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
SOURCECLuaWorldDefs.cppServer/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp INTRODUCED / EXTENDED1c22304f5Read the commit and why the change was made TEST RESOURCE fastweaponstrafe-toggle test-resources/fastweaponstrafe-toggle
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How Existing API extensions works →