Hurdock 1 Posted March 14, 2017 It is awesome that we can use html things inside the server but the problem is... - Is not nice that it has to 'refresh' the page too load the html code. For example: "vehicles": (player, args) => { player.outputChatBox("<script>window.location.href = 'http://localhost/ragemp/vehicles/index.html';</script>"); player.outputChatBox("<font color = 'gray'>Server:</font> Press F1 to see the list of available vehicles now."); }, The windows location href will stop the next outputchatbox to show up. So yeah, is kinda useless to 'load menus' if they aren't in same 'window'. Is there any 'fix' i'm missing here or is a well known bug ? Share this post Link to post Share on other sites
Vladimir Ilich 12 Posted March 14, 2017 (edited) You can use react/vue.js/angular2/inferno/preact/mithril to create the frontend interface with cef. You don't use redirects... https://infernojs.org would be a great candidate for a fast interface. A JS library like inferno/react/vue allows you to update elements on the page instantly and organize them into components. (extremely useful because you can have a chat component, a button component, a dialog component...) Even jquery with $.ajax would be a solution. Also if you want to offload the chat from the server you could use redis channels. Edited March 15, 2017 by Vladimir Ilich Share this post Link to post Share on other sites
ragempdev 798 Posted March 15, 2017 0.2 will feature new cool UI API. Share this post Link to post Share on other sites
Dominik48 0 Posted March 18, 2017 В 15.03.2017 в 02:38, Vladimir Ilich сказал: You can use react/vue.js/angular2/inferno/preact/mithril to create the frontend interface with cef. You don't use redirects... https://infernojs.org would be a great candidate for a fast interface. A JS library like inferno/react/vue allows you to update elements on the page instantly and organize them into components. (extremely useful because you can have a chat component, a button component, a dialog component...) Even jquery with $.ajax would be a solution. Also if you want to offload the chat from the server you could use redis channels. Thanks, I've been looking for this! Share this post Link to post Share on other sites