Gameplay::hasCheatStringJustBeenEntered: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Get inputted 'Cheat code', for example:<br><br>while (TRUE)<br>{<br>    if (GAMEPLAY::_557E43C447E700A8(${fugitive}))<br>    {<br>      // Do something.<br>    }<br>    SYSTEM::WAIT(0);<br>}<br><br>Calling this will also set the last saved string hash to zero.<br>
Get inputted 'Cheat code', for example:<br><br>while (TRUE)<br>{<br>    if (GAMEPLAY::_557E43C447E700A8(${fugitive}))<br>    {<br>      // Do something.<br>    }<br>    SYSTEM::WAIT(0);<br>}<br><br>Calling this will also set the last saved string hash to zero.<br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.hasCheatStringJustBeenEntered(hash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.hasCheatStringJustBeenEntered(hash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''hash:''' Model hash or name
*'''hash:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:03, 22 July 2024

Get inputted 'Cheat code', for example:

while (TRUE)
{
if (GAMEPLAY::_557E43C447E700A8(${fugitive}))
{
// Do something.
}
SYSTEM::WAIT(0);
}

Calling this will also set the last saved string hash to zero.

Syntax

mp.game.gameplay.hasCheatStringJustBeenEntered(hash);

Required Arguments

  • hash: Model hash or name

Return value

  • Boolean

Example

// todo

See also