CreatorsClient exports
PlayAnimation
Last updated on
Asks the server to play an emote on the local player.
local res = exports.opx_infinity:PlayAnimation(name, options, reply)Sync. The server's verdict reaches your reply export as opx:on:animations:result { requestId, action, ok, error?, animation?, variant?, playbackId?, ... } with the same requestId.
Parameters
- name:
string— 1–64 characters - options?:
table— as the module's Play options - reply?:
string— the export the verdict goes to
Returns
{ queued = true, requestId, animation, variant }
Errors
export.callerDenied,export.badArgument,error.unavailable(module not running), and the module's codes
local res = exports.opx_infinity:PlayAnimation('wave')
if res.ok then pendingWave = res.value.requestId end