gta.setCheatEnabled: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = gta.setCheatEnabled
|games = iii, vc, sa
|side = client
|type = function
|type = function
|name = gta.setCheatEnabled
|games = iii vc sa
|usage = set a cheat enabled or disabled
|desc = set a cheat enabled or disabled
|parameters = int cheatId, bool enabled
|arg1 = int cheatId The integer ID of the cheat.
|parameter1 = int cheatId The integer ID of the cheat.
|arg2 = bool enabled Whether the cheat should be enabled.
|parameter2 = bool enabled Whether the cheat should be enabled.
|return = void
|return1 = void
|freturn = void
|returnFail1 = void
|note = [[Server/Defines#GTA_III_-_Cheat_Defines|III Cheat Defines]]<br>
|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]]
[[Server/Defines#GTA_VC_-_Cheat_Defines|VC Cheat Defines]]<br>
[[Server/Defines#GTA_SA_-_Cheat_Defines|SA Cheat Defines]]
}}
}}

Latest revision as of 20:36, 19 November 2022

Function Client Only icon-iii.png icon-vc.png icon-sa.png 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

VC Cheat Defines
SA Cheat Defines.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png gta.isCheatEnabled
icon-iii.png icon-vc.png icon-sa.png gta.setCheatEnabled