MaRvZ 2 Posted January 12 Hello everyone, is there a way to sync the data between the C# bridge backend and the js frontend like the "setSyncedData" function in GT-MP? Greets! MaRvZ Share this post Link to post Share on other sites
trickory 0 Posted January 13 https://wiki.gtanet.work/index.php?title=SetEntitySharedData You can also use OOP methods instead of this static one. Share this post Link to post Share on other sites
MaRvZ 2 Posted January 16 Does this work between bride c# and rage js? Share this post Link to post Share on other sites
TobseN 7 Posted January 23 https://wiki.gtanet.work/index.php?title=SetEntitySharedData This don't works. I tested it. Use player.setdata Share this post Link to post Share on other sites
Xabi 143 Posted January 24 8 hours ago, TobseN said: https://wiki.gtanet.work/index.php?title=SetEntitySharedData This don't works. I tested it. Use player.setdata It would be player.SetSharedData, which is exactly the same as SetEntitySharedData(player, data) Both ways work. 1 Share this post Link to post Share on other sites
MaRvZ 2 Posted January 26 How do I get the data set in C# in the js code? Share this post Link to post Share on other sites
Flashrex 13 Posted January 27 Server-Side C#: player.SetSharedData("ExampleData", example); Client-Side js: var example = mp.players.local.player.getVariable('ExampleData'); 2 Share this post Link to post Share on other sites