feat(extra-natives-five): Add COPY_TEXT_TO_CLIPBOARD#4004
Conversation
|
Check failed because of |
just ignore the checks, they've been broken for a while, the libnode binaries still need to be migrated to a cdn |
|
for now you can do This will close the repo without the LFS files. Then you need to download these manually from https://github.com/citizenfx/libnode/releases/tag/v22.22.0 and place them in the |
|
yeah I know, thanks. Local its working :) |
|
Hi, to also give some feedback in terms of security: |
what if this is not silent and fivem displays a small warning that it was overwritten or so? |
|
To anyone who thinks this can be used in a malicious way This thing already exists with Javascript so nothing actually changes except having a shorter way of copying something to the Client's clipboard |
With the difference that the pages request a clipboard permission. Adding this without a dedicated clipboard permission would involve more risk. |
Sounds to me like a good idea, basically the same as the url confirmation modal that radium made, @FabianTerhorst what do you think about it? |
…k by connect to server and ask user
…k by connect to server and ask user
…k by connect to server and ask user
|
What is the purpose of this native at all? I cant think of a use-case |
They can already do this via CEF, having it permission gates would make sense though. |
I can think of multiple, mainly dev tools. Currently if I want to copy coordinates I have to go through cef, with this I could just copy to clipboard and not need anything extra. |
Oh yeah thats true forgot about that 👍 |
|
yeah, thats the reason why we want it |

Goal of this PR
The possiblity to copy text into the clipboard of the player.
How is this PR achieving the goal
By adding the native COPY_TEXT_TO_CLIPBOARD
This PR applies to the following area(s)
FiveM
Successfully tested on
Latest game build: 3258 but works for all
Platforms: Windows
Checklist