setGlitchEnabled
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function enables or disables glitches that are found in the original Single Player game that can be used to gain an advantage in multiplayer.
Note
By default all these glitches are disabled - use this function to enable them.
Syntax
bool setGlitchEnabled ( string glitchName, bool enable )Required Arguments
- glitchName: the name of the property to set. Possible values are:
- enable: MISSING_PARAM_DESC
Returns
- bool: value
Returns true if successful, false otherwise.
Code Examples
shared
This example allows you to toggle specific glitch usingtrueorfalse.
local glitchesData = { ["quickreload"] = false, ["fastmove"] = false, ["fastfire"] = false, ["crouchbug"] = false, ["highcloserangedamage"] = false, ["hitanim"] = false, ["fastsprint"] = false, ["baddrivebyhitbox"] = false, ["quickstand"] = false, ["kickoutofvehicle_onmodelreplace"] = false, ["vehicle_rapid_stop"] = false,}
local function toggleGlitches() for glitchName, glitchState in pairs(glitchesData) do setGlitchEnabled(glitchName, glitchState) endendaddEventHandler("onResourceStart", resourceRoot, toggleGlitches)