From the reference libraryFiveM

Clipboard

ox/ox_lib/Interface/Client/clipboard.mdx

Clipboard

lib.setClipboard

Sets the player's clipboard to the specified string value.

Will not work if focus is already taken by some NUI component.

To create a new line use \t\n not just \n in your string.

    ```lua
    lib.setClipboard(value)
    ```


    ```ts
    import lib from '@overextended/ox_lib/client';

    lib.setClipboard(value);
    ```
  • value: string
Back to documentation