PlayAnimation

From GT-MP
Jump to: navigation, search
PlayAnimation
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Makes the local player play the specified animation.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In Javascript
Client-Side Function

API.playAnimation(string animDict, string animName, int flag, int duration = -1);

Required Arguments

  • animDict parameter input should be in string type.
  • animName parameter input should be in string type.
  • flag parameter input should be in int type.
  • duration parameter input should be in int type.

Usage example

In Javascript
Client-Side Function

API.playAnimation(string animDict, string animName, int flag, int duration = -1);

References