Jump to content

Someone Who Script Please Help Me!


GuilhermeP

Recommended Posts

Here's how to display a YouTube video on the screen for everybody. I hope this will help you.

local url = "https://www.youtube.com/tv#/watch/video/control?v=iZAqaykiS70&resume"

local sw, sh = guiGetScreenSize()

local browser = Browser(sw, sh, false, false)

addEventHandler("onClientBrowserCreated", browser, function()
   browser:loadURL(url)
end)

addEventHandler("onClientRender", root, function()
   dxDrawImage(0, 0, sw, sh, browser)
end)

 

Edited by Tails
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...