TasksClient

taskVehiclePlayAnim

TASK_VEHICLE_PLAY_ANIM0x69F5C3BD0F3EBD89

The GTA V native TASK_VEHICLE_PLAY_ANIM of the TASK namespace, as LS:MP client scripts call it: the global function taskVehiclePlayAnim, in JavaScript and in Lua.

SignatureJavaScript
taskVehiclePlayAnim(
  vehicle: Vehicle,
  animationSet: string,
  animationName: string
): void
SignatureLua
taskVehiclePlayAnim(
  vehicle: Vehicle,
  animationSet: string,
  animationName: string
)

Usage

JavaScript
taskVehiclePlayAnim(vehicle, animationSet, animationName);
Lua
taskVehiclePlayAnim(vehicle, animationSet, animationName)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
animationSetstringstringstring
animationNamestringstringstring

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.

Most probably plays a specific animation on vehicle. For example getting chop out of van etc...

Here's how its used -

taskVehiclePlayAnim(l_325, "rcmnigel1b", "idle_speedo");

taskVehiclePlayAnim(l_556[0/*1*/], "missfra0_chop_drhome", "InCar_GetOutofBack_Speedo");

FYI : Speedo is the name of van in which chop was put in the mission.

Reference

Namespace
Tasks TASK
In the game
void TASK_VEHICLE_PLAY_ANIM(Vehicle vehicle, const char* animationSet, const char* animationName)
Hash
0x69F5C3BD0F3EBD89

Open in the interactive natives reference