VehicleClient

setTransformRateForAnimation

SET_TRANSFORM_RATE_FOR_ANIMATION0x498218259FB7C72D

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

SignatureJavaScript
setTransformRateForAnimation(vehicle: Vehicle, transformRate: number): void
SignatureLua
setTransformRateForAnimation(vehicle: Vehicle, transformRate: number)

Usage

JavaScript
setTransformRateForAnimation(vehicle, transformRate);
Lua
setTransformRateForAnimation(vehicle, transformRate)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
transformRatefloatnumbernumber

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.

Affects the playback speed of the submarine car conversion animations. Does not affect hardcoded animations such as the wheels being retracted.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_TRANSFORM_RATE_FOR_ANIMATION(Vehicle vehicle, float transformRate)
Hash
0x498218259FB7C72D
Introduced
Game build 1365 legacy numbering
Formerly
_SET_UNK_FLOAT_FOR_SUBMARINE_VEHICLE_TASK

Open in the interactive natives reference