Skip to main content

Player::setPlayerControl

Flags used in the scripts: 0,4,16,24,32,56,60,64,128,134,256,260,384,512,640,768,896,900,952,1024,1280,2048,2560

Note to people who needs this with camera mods, etc.: Flags(0, 4, 16, 24, 32, 56, 60, 64, 128, 134, 512, 640, 1024, 2048, 2560) - Disables camera rotation as well. Flags(256, 260, 384, 768, 896, 900, 952, 1280) - Allows camera rotation.

Syntax

```js mp.game.player.setPlayerControl(togglepossiblyFlags); ```

Required Arguments

  • toggle: Boolean
  • possiblyFlags: int

Return value

  • Undefined

Example

```js // todo ```

See also