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

Vehicle::getIsSubmarineTransformed

Материал из RAGE MP Wiki Archive
Версия от 22:49, 16 сентября 2021; imported>Shr0x (Created page with "==Syntax== <syntaxhighlight lang="javascript">vehicle.getIsSubmarineTransformed();</syntaxhighlight> ===Return value=== *'''boolean''' ==Example== <syntaxhighlight lang="javas...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Syntax

<syntaxhighlight lang="javascript">vehicle.getIsSubmarineTransformed();</syntaxhighlight>

Return value

  • boolean

Example

<syntaxhighlight lang="javascript"> let vehicle = mp.players.local.vehicle; if (vehicle.getIsSubmarineTransformed() === true) {

   mp.gui.chat.push('Your vehicle is trannsformed into a submarine');

} else {

   mp.gui.chat.push('Your vehicle is not transformed into a submarine.');

} </syntaxhighlight>

See also