OSRS Plugin API
    Preparing search index...

    Function playerFindSelf

    • Gets the current player's id.

      Returns [boolean, number]

      whether the player was successfully found, and the current player's id

      wasFound, playerId = osrs.ClientOp.playerFindSelf();
      osrs.print("The current player's name is " .. osrs.ClientOp.playerName(playerId));