That's quite simple.
local screen = {guiGetScreenSize()}
local page = "http://mta/local/yourfile.html"
function downloadGUI()
browser = guiCreateBrowser(0,0,screen[1],screen[2],true,true,false) --display the Browser
bg = guiGetBrowser(browser)
addEventHandler("onClientBrowserCreated", bg, function()
loadBrowserURL(source, page)
end)
end
addEventHandler("onClientRender", root, downloadGUI)
function checkTransfer()
if isTransferBoxActive() == true then
setTimer(checkTransfer,2000,1) -- Check again after 2 seconds
else
removeEventHandler("onClientRender", root, downloadGUI)
end
end
addEventHandler("onClientResourceStart",resourceRoot,checkTransfer)
Also you need to update your download_priority_group field in meta.xml.