HasAnimEventFired

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

Returns whether the specified anim event has fired for the specified entity or not.

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.hasAnimEventFired(LocalHandle entity, int actionHash);

Overload 1:

  • entity parameter input should be in LocalHandle type.
  • actionHash parameter input should be in int type.
API.hasAnimEventFired(LocalHandle entity, string actionName);

Overload 2:

  • entity parameter input should be in LocalHandle type.
  • actionName parameter input should be in string type.

NOTE: This function returns data in bool type.

Usage example

In Javascript
Client-Side Function

API.hasAnimEventFired(LocalHandle entity, int actionHash);
API.hasAnimEventFired(LocalHandle entity, string actionName);

References