Skip to main content

Gameplay::hasCheatStringJustBeenEntered

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​

```js mp.game.gameplay.hasCheatStringJustBeenEntered(hash); ```

Required Arguments​

  • hash: Model hash or name

Return value​

  • Boolean

Example​

```js // todo ```

See also​