User Tools

Site Tools


script:ui_event:playelementanim

PlayElementAnim


  • Parameters & Types:
    • playerid: number player ID
    • uiid: the ID of the string interface
    • elementid: the ID of the string component
    • animid:number animation ID
    • time: number (must be greater than 0)
    • mode: number playback mode loop 1 single 2 (VIEDOPLAYMODE) VIEDOPLAYMODE
  • Return value and type:
    • code:number succeeded (ErrorCode.OK) ErrorCode
  • The main purpose of this method: The symbol plays the animation
  • Specific use cases are as follows:
local code  = Customui:PlayElementAnim(playerid, uiid, elementid, animid, time, mode)
if code == ErrorCode.OK then
    print('Execution Successful'  )
else
    print('Execution failed')
end
script/ui_event/playelementanim.txt · Last modified: 2024/06/16 14:04 by don