gta.setCheatEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = client |type = function |name = gta.setCheatEnabled |usage = set a cheat enabled or disabled |parameters = int cheatId, bool enabled |parameter1 = int...") |
No edit summary |
||
Line 9: | Line 9: | ||
|return1 = void | |return1 = void | ||
|returnFail1 = void | |returnFail1 = void | ||
|notes = [[Server/Defines#GTA_III_-_Cheat_Defines|III Cheat Defines]] | |notes = [[Server/Defines#GTA_III_-_Cheat_Defines|III Cheat Defines]][br][[Server/Defines#GTA_VC_-_Cheat_Defines|VC Cheat Defines]][br][[Server/Defines#GTA_SA_-_Cheat_Defines|SA Cheat Defines]] | ||
}} | }} |
Revision as of 06:45, 19 May 2021
Function
Client Only
Online and Offline
Available since Client 1.0.0
void gta.setCheatEnabled(int cheatId, bool enabled)
The gta.setCheatEnabled function is used to set a cheat enabled or disabled.
Parameters
1) | int | cheatId | The integer ID of the cheat. |
2) | bool | enabled | Whether the cheat should be enabled. |
Return
void | This function doesn't return a value. |
Notes
Examples
There aren't any examples for this function.
Compatibility
There isn't any compatibility information for this function.
Related
Client Related
gta.isCheatEnabled
gta.setCheatEnabled