Skip to content

function useItemToState (client-side)

Available since version: 0.2.1

This function will try to use, interact, open item in specific state by player/npc.


void useItemToState(int id, int itemId, int state)


  • int id: the player id.
  • int itemId: the item id that you want to interact with.
  • int state: the state that you'll start from interacting with item.