lia.caption

Helper library for managing caption displays in roleplay scenarios.

Functions

finish()

Clears the caption message on the screen.

finish(client)

Sends a request to the client to end the caption message.

Parameters

  • client

    The client who will receive the request to end the caption.

start(text, duration)

Displays a caption message on the screen for a specified duration.

Parameters

  • text String

    The caption text to display.

  • duration number optional

    The duration (in seconds) for which to display the caption (default: length-based duration).

start(client, text, duration)

Sends a request to the client to display a caption message for a specified duration.

Parameters

  • client

    The client who will receive the caption.

  • text String

    The caption text to display.

  • duration number optional

    The duration (in seconds) for which to display the caption (default: 5 seconds).