isGlitchEnabled | Multi Theft Auto: Wiki Skip to content

isGlitchEnabled

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function retrieves whether San Andreas game glitches are enabled or not, set by using setGlitchEnabled

Syntax

isGlitchEnabled ( )

Code Examples

server

This example outputs weather the "fastmove" glitch is enabled or not.

setGlitchEnabled("fastmove",true) -- Enable the fastmove glitch at resource start.
function checkIsEnabled(thePlayer,command)
if (isGlitchEnabled("fastmove")) then -- Check weather fastmove is enabled or not.
outputChatBox("fastmove is enabled.",thePlayer,255,255,0) -- If so, output that it's enabled.
else
outputChatBox("fastmove is not enabled.",thePlayer,255,0,0) -- If not, output that it isn't enabled.
end
end
addCommandHandler("glitch",checkIsEnabled)