taskVehiclePlayAnim
TASK_VEHICLE_PLAY_ANIM0x69F5C3BD0F3EBD89The 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.
taskVehiclePlayAnim(
vehicle: Vehicle,
animationSet: string,
animationName: string
): voidtaskVehiclePlayAnim(
vehicle: Vehicle,
animationSet: string,
animationName: string
)Usage
JavaScript
taskVehiclePlayAnim(vehicle, animationSet, animationName);Lua
taskVehiclePlayAnim(vehicle, animationSet, animationName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
animationSet | string | string | string |
animationName | string | string | string |
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