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

Vehicle::getIsSubmarineTransformed

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

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