Jump to content

help


TheSmart

Recommended Posts

hey guys!

i made it from *** but it not working here is it code

local webBrowser = createBrowser(1200, 675) 
  
addCommandHandler("youtube", 
    function() 
                  loadBrowserURL(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 
) 

Edited by Guest
Link to comment

Try this.

local Width, Height = guiGetScreenSize()  
  
local webBrowser = createBrowser(Width, Height, false, false) 
      
    addCommandHandler("youtube", 
        function() 
                      loadBrowserURL(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 
    ) 

Link to comment

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.
×
×
  • Create New...