VehicleClient

setTransformToSubmarineUsesAlternateInput

SET_TRANSFORM_TO_SUBMARINE_USES_ALTERNATE_INPUT0x41B9FB92EDED32A6

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

When set to true, the key to transform a car to submarine mode changes from raise/lower convertible roof (hold H by default) to special vehicle transform (press X by default.)

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_TRANSFORM_TO_SUBMARINE_USES_ALTERNATE_INPUT(Vehicle vehicle, BOOL toggle)
Hash
0x41B9FB92EDED32A6
Introduced
Game build 1365 legacy numbering
Formerly
_SET_UNK_BOOL_FOR_SUBMARINE_VEHICLE_TASK

Open in the interactive natives reference