TaskPlayAnim — FiveM Natives
0xEA47FE3719165B94 · TASK · all
Animations list ``cpp enum eScriptedAnimFlags { AF_LOOPING = 1, AF_HOLD_LAST_FRAME = 2, AF_REPOSITION_WHEN_FINISHED = 4, AF_NOT_INTERRUPTABLE = 8, AF_UPPERBODY = 16, AF_SECONDARY = 32, AF_REORIENT_WHEN_FINISHED = 64, AF_ABORT_ON_PED_MOVEMENT = 128, AF_ADDITIVE = 256, AF_TURN_OFF_COLLISION = 512, AF_OVERRIDE_PHYSICS = 1024, AF_IGNORE_GRAVITY = 2048, AF_EXTRACT_INITIAL_OFFSET = 4096, AF_EXIT_AFTER_INTERRUPTED = 8192, AF_TAG_SYNC_IN = 16384, AF_TAG_SYNC_OUT = 32768, AF_TAG_SYNC_CONTINUOUS = 65536, AF_FORCE_START = 131072, AF_USE_KINEMATIC_PHYSICS = 262144, AF_USE_MOVER_EXTRACTION = 524288, AF_HIDE_WEAPON = 1048576, AF_ENDS_IN_DEAD_POSE = 2097152, AF_ACTIVATE_RAGDOLL_ON_COLLISION = 4194304, AF_DONT_EXIT_ON_DEATH = 8388608, AF_ABORT_ON_WEAPON_DAMAGE = 16777216, AF_DISABLE_FORCED_PHYSICS_UPDATE = 33554432, AF_PROCESS_ATTACHMENTS_ON_START = 67108864, AF_EXPAND_PED_CAPSULE_FROM_SKELETON = 134217728, AF_USE_ALTERNATIVE_FP_ANIM = 268435456, AF_BLENDOUT_WRT_LAST_FRAME = 536870912, AF_USE_FULL_BLENDING = 1073741824 } ``
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped you want to play the animation |
| animDictionary | char* | The animation dictionary |
| animationName | char* | The animation name |
| blendInSpeed | float | The speed at which the animation blends in. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant |
| blendOutSpeed | float | The speed at which the animation blends out. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant |
| duration | int |