OSRS Plugin API
    Preparing search index...

    Function playerSay

    • Displays a message as if the player sent a chat message.

      Parameters

      • playerId: number

        id of the player to display the message over

      • message: string

        message to print to the screen

      • lifetime: number

        how long to display the message on screen for in render frames (e.g. a value of 60 will display for 1 second if running at 60 fps).

      Returns void

      wasFound, id = osrs.ClientOp.playerFindSelf();
      osrs.ClientOp.playerSay(id, "The current player's name is " .. osrs.ClientOp.playerName(id), 60);