Jump to content

CEF: How to deal with it?


Jusonex

Recommended Posts

  • 4 weeks later...
Posted

@Jusonex

Quick question:

Are you able to control the webpage yourself, clientside? Is there like a mouse you can control and click on things on the website? That'd be cool.

  • 1 month later...
  • 1 month later...
Posted

hello, i tried to make a simple but it's not work. Somebody help me please!.

client:

local webBrowser = createBrowser(1200, 675) 
  
addCommandHandler("youtube", 
    function() 
                  browserLoadURL(webBrowser, "https://www.youtube.com/watch?v=kdemFfbS5H0") 
        
                 addEventHandler("onClientRender", root, 
                     function() 
                         -- Update texture data 
                         updateBrowser(webBrowser) 
    
                         -- We can simply draw the webbrowser now since it is a standard DirectX texture 
                         local x, y = 110.7, 1024.15 
                         dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) 
                     end 
                ) 
      end 
) 

server:

-- Ask the player after login 
addEventHandler("onPlayerLogin", root, 
    function() 
        requestWebPages({"youtube.com", "google.com", "myservername.com"}) 
    end 

this script can createBrowser 3d but can't load video

Posted
but i don't know what faction can help me show my createBrowser wtih 3d?? can you teach me, please
dxDrawLine3D  

put the browser in the place of the color argument.

Posted
but i don't know what faction can help me show my createBrowser wtih 3d?? can you teach me, please
dxDrawLine3D  

put the browser in the place of the color argument.

Oh my. Someone please end this.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...