Перейти к содержанию

Gameplay::hasCheatStringJustBeenEntered

Материал из RAGE MP Wiki Archive
Версия от 10:03, 22 июля 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.gameplay.hasCheatStringJustBeenEntered(hash);</syntaxhighlight>

Required Arguments

  • hash: Model hash or name

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also