How can i transfer data from NUI to the script?

I’m trying for a along time to move data form the NUI to my server side of the script and I could not make it work.

If anyone can help I will be grateful.

Thanks for your help

1 Like

+1 I need that too

https://docs.fivem.net/docs/scripting-manual/nui-development/nui-callbacks/

then after receiving the nui callback trigger a server event, optionally make a request to a server endpoint by using GetCurrentServerEndpoint

Thanks, it is working

2 Likes