Skeef Posted June 2, 2020 Share Posted June 2, 2020 Hello everyone! Who can tell, I created a view using a react, assembled my project and inserted the assembly into the client package folder, then I registered a new browser in the file index and the path to my index.html and run server, but the cef does not want to be displayed. What am I doing wrong? And if I run a local web server when developing a react, then I can turn to it by specifying the path of the localhost:3000, but in all the assemblies that I saw there they indicated the path using the package:// .. I don’t understand why I can’t do also This is what my catalog looks like: File index.js require('./gamemode/index.js') File gamemode/index.js mp.events.add('guiReady', () => { mp.gui.chat.push("Hello world!") browser = mp.browsers.new('package://CEF/build/index.html') }) Folder CEF/build: Link to comment Share on other sites More sharing options...
sudocreator Posted August 18, 2020 Share Posted August 18, 2020 I've bumped into the same problem. It seems to me like i'm missing something in a principies of the comunication beetween components in the Rage MP. Is it correct to run React app on a server on some socket ? How does client connect with React application ? Please, help. Thanks in advance ! Link to comment Share on other sites More sharing options...
randzhamiya Posted August 19, 2020 Share Posted August 19, 2020 Have you seen how React is used here?https://rage.mp/files/file/33-example-sequelize-reactjs-redux/ Link to comment Share on other sites More sharing options...
Smokc Posted April 22, 2021 Share Posted April 22, 2021 ¿Se supo algo sobre esto? 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