Table of Contents

Class Animation

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

id int

The 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

library string

The name of the animation library.

v1Compat bool

Whether to consider GTA:SA v1.0 animation libraries as valid.

Returns

bool

true if the specified animation library is valid; false otherwise.

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)

Parameters

library string

The name of the animation library.

name string

The name of the animation.

Returns

bool

true if the specified animation is valid; false otherwise.