isVehicleInSubmarineMode
IS_VEHICLE_IN_SUBMARINE_MODE0xA77DC70BD689A1E5The GTA V native IS_VEHICLE_IN_SUBMARINE_MODE of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleInSubmarineMode, in JavaScript and in Lua.
isVehicleInSubmarineMode(vehicle: Vehicle): booleanisVehicleInSubmarineMode(vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleInSubmarineMode(vehicle);Lua
local result = isVehicleInSubmarineMode(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_VEHICLE_IN_SUBMARINE_MODE(Vehicle vehicle)- Hash
0xA77DC70BD689A1E5- Introduced
- Game build 1290 legacy numbering
- Formerly
_GET_IS_SUBMARINE_VEHICLE_TRANSFORMED