hasCheatWithHashBeenActivated
HAS_CHEAT_WITH_HASH_BEEN_ACTIVATED0x071E2A839DE82D90The GTA V native HAS_CHEAT_WITH_HASH_BEEN_ACTIVATED of the MISC namespace, as LS:MP client scripts call it: the global function hasCheatWithHashBeenActivated, in JavaScript and in Lua.
hasCheatWithHashBeenActivated(hash: Hash, amount: number): booleanhasCheatWithHashBeenActivated(hash: Hash, amount: integer): booleanUsage
JavaScript
const result = hasCheatWithHashBeenActivated(hash, amount);Lua
local result = hasCheatWithHashBeenActivated(hash, amount)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hash | Hash | number | integer |
amount | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native appears on the cheat_controller script and tracks a combination of buttons, which may be used to toggle cheats in-game. Credits to ThreeSocks for the info. The hash contains the combination, while the "amount" represents the amount of buttons used in a combination. The following page can be used to make a button combination: gta5offset.com/ts/hash/
INT_SCORES_SCORTED was a hash collision
Reference
- Namespace
- Misc MISC
- In the game
BOOL HAS_CHEAT_WITH_HASH_BEEN_ACTIVATED(Hash hash, int amount)- Hash
0x071E2A839DE82D90- Formerly
_HAS_BUTTON_COMBINATION_JUST_BEEN_ENTERED