Molekulė Posted January 22, 2021 Share Posted January 22, 2021 Hello, how can I send data from server-side to client-side render? (without variables) Link to comment Share on other sites More sharing options...
TedyRO Posted January 31, 2021 Share Posted January 31, 2021 Hi, yes, you can. I don't know in what language do you want it, i will show in JS. So, first you need to create a event in client-side: mp.events.add("SendDataToClient", (somedata) => { mp.gui.chat.push(somedata) // Just for debug. } And after you just call the function from server-side: player.call("SendDataToClient", [data]); I hope this helps you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now