User Tools

Site Tools


script:ui_event:getshucticon

getShuctIcon

  • Parameters & Types:
    • playerid: number player ID
  • ix:number shortcut index(1~8)
  • Return value and type:
  • ErrorCode.OK
    • iconid: number item iconID
  • The main purpose of this method is to obtain the iconID of the player's hotbar item icon
  • Specific use cases are as follows:
local result,iconid = Customui:getShuctIcon(playerid,ix)
script/ui_event/getshucticon.txt · Last modified: 2024/06/16 13:52 by don