Skip to content

function useItem (server-side)

Available since version: 0.2

This function will try to use, interact, open item by player.

Declaration

void useItem(int id, int itemId)

Parameters

  • int id: the player id.
  • int itemId: the item id that you want to interact with.