Gameplay::hasCheatStringJustBeenEntered: Difference between revisions
(yay) |
(yay) |
||
| 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_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:06, 6 May 2017
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