Jump to content

browser is not work


Recommended Posts

screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema,  
    function() 
        requestBrowserDomains({ "mtasa.com" },{"youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

Link to comment

What does that mean?

screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema, 
    function() 
        requestBrowserDomains({ "mtasa.com", "youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

Link to comment
What does that mean?
screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema, 
    function() 
        requestBrowserDomains({ "mtasa.com", "youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

As i know you should use at the url this format: http://theurl.domain

Link to comment
What does that mean?
screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema, 
    function() 
        requestBrowserDomains({ "mtasa.com", "youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

i want dxDrawMaterialLine3D , like cinema.

Link to comment
What does that mean?
screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema, 
    function() 
        requestBrowserDomains({ "mtasa.com", "youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

i want dxDrawMaterialLine3D , like cinema.

Why the hell you don't listened to me?

1.Youtube its already allowed

2. Change loadBrowserURL(screenCinema, "youtube.com") to loadBrowserURL(screenCinema, "htpp://www.youtube.com")

Link to comment
What does that mean?
screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema, 
    function() 
        requestBrowserDomains({ "mtasa.com", "youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
end 

i want dxDrawMaterialLine3D , like cinema.

Why the hell you don't listened to me?

1.Youtube its already allowed

2. Change loadBrowserURL(screenCinema, "youtube.com") to loadBrowserURL(screenCinema, "htpp://www.youtube.com")

you mean:

screenCinema = createBrowser(1000,1000) 
addEventHandler("onClientBrowserCreated", screenCinema,  
    function() 
        requestBrowserDomains({ "mtasa.com" },{"youtube.com"}) 
        --loadBrowserURL(webBrowser, "html/site.html") 
        loadBrowserURL(screenCinema, "https://youtube.com") 
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 
function webBrowserRender() 
dxDrawMaterialLine3D (110,1140,30,110,1140,14, screenCinema, 18.5, tocolor(255,255,255,255)) 
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...