TASK_PLAY_ANIM_ADVANCED
Plays animName from animDict on ped starting at the given position and rotation.
Signature
void TASK_PLAY_ANIM_ADVANCED(Ped ped, const char* animDict, const char* animName, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float speed, float speedMultiplier, int duration, int flags, float p13, int p14, int p15, int p16); // 0x83CDB10EA29B370B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | animDict | const char* |
| 3 | animName | const char* |
| 4 | posX | float |
| 5 | posY | float |
| 6 | posZ | float |
| 7 | rotX | float |
| 8 | rotY | float |
| 9 | rotZ | float |
| 10 | speed | float |
| 11 | speedMultiplier | float |
| 12 | duration | int |
| 13 | flags | int |
| 14 | p13 | float |
| 15 | p14 | int |
| 16 | p15 | int |
| 17 | p16 | int |
Facts
| Name | TASK_PLAY_ANIM_ADVANCED |
|---|---|
| Hash | 0x83CDB10EA29B370B |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x83CDB10EA29B370B, -- TASK_PLAY_ANIM_ADVANCED
PlayerPedId(), -- Ped ped
"text", -- const char* animDict
"text", -- const char* animName
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0.0, -- float rotX
0.0, -- float rotY
0.0, -- float rotZ
0.0, -- float speed
0.0, -- float speedMultiplier
0, -- int duration
0, -- int flags
0.0, -- float p13
0, -- int p14
0, -- int p15
0 -- int p16
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x83CDB10EA29B370B", // TASK_PLAY_ANIM_ADVANCED
PlayerPedId(), // Ped ped
"text", // const char* animDict
"text", // const char* animName
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0.0, // float rotX
0.0, // float rotY
0.0, // float rotZ
0.0, // float speed
0.0, // float speedMultiplier
0, // int duration
0, // int flags
0.0, // float p13
0, // int p14
0, // int p15
0 // int p16
);Function.Call((Hash)0x83CDB10EA29B370B, // TASK_PLAY_ANIM_ADVANCED
API.PlayerPedId(), // Ped ped
"text", // const char* animDict
"text", // const char* animName
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0.0f, // float rotX
0.0f, // float rotY
0.0f, // float rotZ
0.0f, // float speed
0.0f, // float speedMultiplier
0, // int duration
0, // int flags
0.0f, // float p13
0, // int p14
0, // int p15
0 // int p16
);Related TASK natives
- TASK_PLAY_ANIM
- TASK_PLAY_UPPER_ANIM_FACING_ENTITY
- TASK_PLAY_EMOTE_WITH_HASH
- TASK_ENTER_ANIM_SCENE
- TASK_EVASIVE_ANIM
- TASK_FOLLOW_NAV_MESH_TO_COORD_ADVANCED
- TASK_FOLLOW_WAYPOINT_RECORDING_ADVANCED
- TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS
- TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS_ATTACHED
- TASK_WHISTLE_ANIM
- _TASK_PLAY_EMOTE
- CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.