Gameplay::hasButtonCombinationJustBeenEntered: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 12: Line 12:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_s_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:09, 22 July 2024

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

Syntax

mp.game.gameplay.hasButtonCombinationJustBeenEntered(hash, amount);

Required Arguments

  • hash: Model hash or name
  • amount: int

Return value

  • Boolean

Example

// todo

See also