Vehicle::getIsSubmarineTransformed

From RAGE Multiplayer Wiki
Revision as of 22:49, 16 September 2021 by Shr0x (talk | contribs) (Created page with "==Syntax== <syntaxhighlight lang="javascript">vehicle.getIsSubmarineTransformed();</syntaxhighlight> ===Return value=== *'''boolean''' ==Example== <syntaxhighlight lang="javas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax

vehicle.getIsSubmarineTransformed();

Return value

  • boolean

Example

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.');
}

See also