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

Entity::isAttached

Материал из RAGE MP Wiki Archive
Версия от 18:02, 1 мая 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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