setGlitchEnabled
Server-side
Adds the Neon-only fastweaponstrafe option to MTA's existing synchronized glitch API.
Syntax
bool setGlitchEnabled(string glitchName, bool enabled)Arguments
glitchNamestringUse fastweaponstrafe for Neon's SA-MP-style weapon movement.
enabledboolDesired 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
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 NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Existing API extensions works →