Gets the player ID of the player specified by the name, if on-screen.
the name of the player to retrieve the id for.
The Id of the named player.
id = osrs.ClientOp.getPlayerIdByName("<EXAMPLE USER>")osrs.ClientOp.playerSay(id, "Example Message", 100) Copy
id = osrs.ClientOp.getPlayerIdByName("<EXAMPLE USER>")osrs.ClientOp.playerSay(id, "Example Message", 100)
Gets the player ID of the player specified by the name, if on-screen.