RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. TASK_PLAY_ANIM_ADVANCED

TASK_PLAY_ANIM_ADVANCED

Similar in functionality to [`TASK_PLAY_ANIM`](#\_0xEA47FE3719165B94), except the position and rotation parameters let you specify the initial position and rotation of the task. The ped is teleported to the position specified. [Animations list](https://alexguirre.github.io/animations-list/) **This is the server-side RPC native equivalent of the client native [TASK_PLAY_ANIM_ADVANCED](?\_0x83CDB10EA29B370B).**

CFX

Signature

lua
TaskPlayAnimAdvanced(PlayerPedId(), animDictionary, animationName, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, flag, 0.0, p14, p15)
-- returns void

Parameters

NameTypeDescription
PedThe ped you want to play the animation
char*The animation dictionary
char*The animation name
floatInitial X position of the task
floatInitial Y position of the task
floatInitial Z position of the task
floatInitial X rotation of the task
floatInitial Y rotation of the task
floatInitial Z rotation of the task
floatThe speed at which the animation blends in. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant
floatThe speed at which the animation blends out. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant
intThe duration of the animation in milliseconds. -1 will play the animation until canceled
AnySee [`TASK_PLAY_ANIM`](#\_0xEA47FE3719165B94)
floatValue between 0.0 and 1.0, lets you start an animation from the given point
Any—
Any—

Usage

lua
TaskPlayAnimAdvanced(PlayerPedId(), animDictionary, animationName, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, flag, 0.0, p14, p15)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details