Hooks hooksserver
Part of Animations
Hooks called by Animations
Summary
Hooks
Asks whether a player may start an animation from the context menu or through
Animations:play.Hooks
Asks whether a player may start an animation from the context menu or through
Animations:play. Called on the server after the plugin's own checks have passed: the
player is alive, on foot, on the ground, not crouching, not ragdolled, not in observer
mode, not playing another animation, past the cooldown, and their model has the
sequences.
Parameters
- actor Player The player who wants to play the animation
- id String ID of the animation
- data Map The registered animation data
Returns
- Boolean Return false to refuse. A second return value, a text or a language phrase, is shown to the player instead of the default refusal
Called from
prepare