Player::stopAnimation

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This method stops animation of the player

Parameters

None

Syntax

player.stopAnimation()

Example

Server-Side
// call this events from client side to do animation for 10s and stop it

mp.events.add("DoMedicalCheck", (player) => {
    player.playScenario('CODE_HUMAN_MEDIC_KNEEL');
    setTimeout(() => {
        player.stopAnimation();
    }, 10000)
})

See Also