forceSubmarineSurfaceMode
FORCE_SUBMARINE_SURFACE_MODE0x33506883545AC0DFThe 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.
forceSubmarineSurfaceMode(vehicle: Vehicle, toggle: boolean): voidforceSubmarineSurfaceMode(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
forceSubmarineSurfaceMode(vehicle, toggle);Lua
forceSubmarineSurfaceMode(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
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