Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/25/18 in Posts

  1. The Chromium Embedded Framework (CEF) is a useful "embedding framework" that allows applications to make use of browser based technologies. (https://bitbucket.org/chromiumembedded/cef) CEF is comprised (especially in the example and answer to your question, provided by Kemperr) of HTML, CSS and Javascript on a frontend basis. You can store these files clientside and use them within your CEF calls (as part of index.js or required within thereof). To render them we refer to a URL that references the path of the client_packages directory (inside your server's directory). EXAMPLE: mp.browsers.new('package://menu/index.html'); // This would refer to client_packages/menu/index.html A working example would be to place that in an event handler on your clientside, like so: mp.events.add('guiReady', () => { mp.browsers.new('package://menu/index.html'); // Here we display the browser instance to the client }); CEF can handle ES5 and ES6 scripting, so there is very little limitation on what you can do in terms of front-end work. --- Alternatively, you can opt-in to using the NativeUI stuff: https://github.com/alexguirre/RAGENativeUI Which I wouldn't recommend if you are not well versed in .NET (or rather, C#)
    1 point
  2. Hello. You can currently use mp.trigger in the browser to call an event in your client scripts and use browser.execute to run a js code in your browser from your client scripts. Using these you can make a bidirectional communication with the client and the browser. And for my module, ajcom, I have CEF communications in todo list and it will be implemented very soon (probably today, after work!). With the CEF coms you can call handlers in any of these directions without having to deal with mp.trigger and browser.execute: cef > client (bidirectional) cef > server (bidirectional)
    1 point
  3. Хабен, пикапы давно не в тренде
    1 point
  4. I'd recommend the open source "freeroam" code on GitHub (https://github.com/n-n1ks/rage.mp-freeroam) I think that is the original. You could use the above as a base of your work, or just as a learning tool. All the best.
    1 point
×
×
  • Create New...