Tips - Pycckue-Bnepeg/samp-cef GitHub Wiki
Using developer tools
To open chromium developer tools you can use Pawn function native cef_toggle_dev_tools(player_id, browser_id, bool:enabled)
.
It may be not responding. That's expected behavior. To fix that use SAMPFUNCS with the antipause=true
setting.
Place files on client-side
Also, chromium allows you to use file:///path/to/index.html
. There is one question how do find out where are those files.
If you use a custom launcher (without it I do not recommend you use file:
protocol) you can send a packet (using RakNet) with a path to the game and then open it using Pawn functions.
In case you have no such ability in your launcher you can create a plugin that will get the current path and open a browser using the C API that this CEF plugin exposes.
The idea of using client local storage is tricky. You should figure out where to place these files, how to update them, make sure that all clients use the same pages at this time, and so on.
I do not like launchers. That means I will not support them and have no desire to add such functionality.