Class Animation
Provides methods related to animation names.
public static class Animation
- Inheritance
-
Animation
- Inherited Members
Methods
GetAnimation(int)
returns the library and name of the animation with the specified id.
public static (string? library, string? name) GetAnimation(int id)
Parameters
idintThe identifier of the animation.
Returns
- (string library, string name)
The library and name of the animation. null values are returned if the specified identifier is invalid.
IsLibraryValid(string, bool)
Returns a value indicating whether the specified animation library is valid.
public static bool IsLibraryValid(string library, bool v1Compat = true)
Parameters
librarystringThe name of the animation library.
v1CompatboolWhether to consider GTA:SA v1.0 animation libraries as valid.
Returns
IsNameValid(string, string)
Returns a value indicating whether the animation with the specified library and name is valid.
public static bool IsNameValid(string library, string name)