VehicleClient

transformToCar

TRANSFORM_TO_CAR0x2A69FFD1B42BFF9E

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

SignatureJavaScript
transformToCar(vehicle: Vehicle, noAnimation: boolean): void
SignatureLua
transformToCar(vehicle: Vehicle, noAnimation: boolean)

Usage

JavaScript
transformToCar(vehicle, noAnimation);
Lua
transformToCar(vehicle, noAnimation)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
noAnimationBOOLbooleanboolean

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.

Transforms the stormberg/toreador to its "road vehicle" variant. If the vehicle is already in that state then the vehicle transformation audio will still play, but the vehicle won't change at all.

Reference

Namespace
Vehicle VEHICLE
In the game
void TRANSFORM_TO_CAR(Vehicle vehicle, BOOL noAnimation)
Hash
0x2A69FFD1B42BFF9E
Introduced
Game build 1290 legacy numbering
Formerly
_TRANSFORM_STORMBERG_TO_ROAD_VEHICLE _TRANSFORM_SUBMARINE_TO_VEHICLE

Open in the interactive natives reference