VehicleClient

forceSubmarineSurfaceMode

FORCE_SUBMARINE_SURFACE_MODE0x33506883545AC0DF

The GTA V native FORCE_SUBMARINE_SURFACE_MODE of the VEHICLE namespace, as LS:MP client scripts call it: the global function forceSubmarineSurfaceMode, in JavaScript and in Lua.

SignatureJavaScript
forceSubmarineSurfaceMode(vehicle: Vehicle, toggle: boolean): void
SignatureLua
forceSubmarineSurfaceMode(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
forceSubmarineSurfaceMode(vehicle, toggle);
Lua
forceSubmarineSurfaceMode(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void FORCE_SUBMARINE_SURFACE_MODE(Vehicle vehicle, BOOL toggle)
Hash
0x33506883545AC0DF

Open in the interactive natives reference