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

Entity::isAttached

Материал из RAGE MP Wiki Archive

Syntax

<syntaxhighlight lang="javascript">entity.isAttached();</syntaxhighlight> It appears that, once you are driving a vehicle... you are attached to it.

Required Arguments

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> mp.keys.bind(0x32, false, () => { // '2' mp.game.graphics.notify(`~r~${player.isAttached()}.`); if(player.isAttached()) { // player is attached to something } }); </syntaxhighlight>

See also