Thanks, but i kind of :Oed up in the addcommandhandler,
so i was wondering how to fix it:
local screenWidth, screenHeight = guiGetScreenSize(945, 736)
local webBrowser = createBrowser(945, 736, false, false)
function webBrowserRender()
dxDrawImage(0, 0, 945, 736, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end
addEventHandler ("onClientRender", root, function ()
loadBrowserURL(webBrowser, "http://www.youtube.com")
end
)
the command should be /youtube
which i thought it should be
addCommandHandler ( "youtube", Youtube)