Sign in to follow this  
madKelly

CEF didn't display

Recommended Posts

Hello guys.

I have huge problem with CEF when I enter in server (event playerJoin). Everything works, my function server and client side works but CEF browser doesn't display. When I use command handler "/gui" then cef is displayed. This code works on PC my buddy...

https://github.com/madKelly/gamemode

Share this post


Link to post
Share on other sites

In case anyone wishes to help, I tried out the code myself and it does work, there's just something on madKelly's side that isn't letting the page show up when he joins his server.

Share this post


Link to post
Share on other sites
1 hour ago, MrPancakers said:

In case anyone wishes to help, I tried out the code myself and it does work, there's just something on madKelly's side that isn't letting the page show up when he joins his server.

Yep. I delete all files and redownload everything but still nothing...

Share this post


Link to post
Share on other sites
function OnPlayerJoin(player)
{
  console.log("\nFunction OnPlayer działa!");
  player.position = new mp.Vector3(-403, 5962, 31);
  player.call("gamemode:createLoginPanel");
}
mp.events.add("playerJoin", OnPlayerJoin);
player.call("gamemode:createLoginPanel"); don't work. Question - why?

Share this post


Link to post
Share on other sites

 

В 10/8/2017 в 22:33, madKelly сказал:
function OnPlayerJoin(player)
{
  console.log("\nFunction OnPlayer działa!");
  player.position = new mp.Vector3(-403, 5962, 31);
  player.call("gamemode:createLoginPanel");
}
mp.events.add("playerJoin", OnPlayerJoin);
player.call("gamemode:createLoginPanel"); don't work. Question - why?

u need to trigger server after ur CEF starts .

then createLoginPanel

Edited by zigutt

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.