Skip to main content

Entity::isAttached

Syntax

```js entity.isAttached(); ```

It appears that, once you are driving a vehicle... you are attached to it.

Required Arguments

Return value

  • Boolean

Example

```js mp.keys.bind(0x32, false, () => { // '2'

   mp.game.graphics.notify(`~r~$\{player.isAttached()\}.`);
   if(player.isAttached()) \{
       // player is attached to something
   \}

}); ```

See also