Displaying HTML -> without extendet Stuff

Recommended Posts

Hey guys,


ragemp has cef, so lets use it! ( useable @ 0.2 ;) )

(it's my Code, so my leader has nothing to say :P)



// [ The_HydroX | Nick | 2017 ]

let devWindow = {
	browser:'package://[YOUR CLIENT PACKAGE]/index.html'),
	keyCode: 0x7B, // F12
	windowOpen: false

I define a new object, named devWindow.

the browser window will be spawned when we call'package://devLog/index.html')



I want to change the visibility of the Frame / cef / whatEver.

// keyDown
mp.keys.bind(devWindow.keyCode, true, function(){
	if (!devWindow.windowOpen) {
		devWindow.windowOpen = !devWindow.windowOpen;
	} else {
		devWindow.windowOpen = !devWindow.windowOpen;

i do this with keyBinding.



you can execute functions they are defined @ the index.html

function showWindow() {

function hideWindow() {


yes, its very simple. ;)


sry for my englisch ^^

GreetZ from Dresden


Edited by The_HydroX
available @ 0.2 - sry
  • Like 2

Share this post

Link to post
Share on other sites

Please can you specify the files, where i have to put this code ?

Share this post

Link to post
Share on other sites

yes, of course.


or you use this : [Offline]

Ps. for you ;)


GreetZ The_HydroX

Edited by The_HydroX

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.