engineRestoreAnimation | Multi Theft Auto: Wiki Skip to content

engineRestoreAnimation

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function restores internal (default) animations that were replaced using engineReplaceAnimation function. This function only affects a specific player or ped just like engineReplaceAnimation.

Syntax

bool engineRestoreAnimation ( ped thePed, string InternalBlockName, string InternalAnimName )
Required Arguments
  • thePed: the player or ped you want to restore an animation(s) for.
  • InternalBlockName: the internal block name.
  • InternalAnimName: the internal animation name inside InternalBlockName.

Returns

  • bool: value

Returns true on success, false in case of failure.

Code Examples

shared

Example 1:This example restores all replaced animations within every block for the local player.

engineRestoreAnimation( localPlayer )

See Also

Engine Functions
Engine Elements