transformToCar
TRANSFORM_TO_CAR0x2A69FFD1B42BFF9EThe 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.
transformToCar(vehicle: Vehicle, noAnimation: boolean): voidtransformToCar(vehicle: Vehicle, noAnimation: boolean)Usage
JavaScript
transformToCar(vehicle, noAnimation);Lua
transformToCar(vehicle, noAnimation)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
noAnimation | BOOL | boolean | boolean |
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