Skip to main content

Player::setStealthMovement

This function will disable stealth movement ability (ustually ctrl button)

p1 is usually 0 in the scripts. action is either 0 or a pointer to 'DEFAULT_ACTION'.

Syntax

```js player.setStealthMovement(p1, action); ```

Required Arguments

  • p1: Boolean
  • action: String

Return value

  • Undefined

Example

```js // Disable Stealth Movement mp.players.local.setStealthMovement(false, '0'); ```

See also