Don't work.
Meta:
<meta>
<script src="Loading.Lua" type="client" />
<file src="index.html" />
<download_priority_group>1</download_priority_group>
</meta>
Client:
local screen = {guiGetScreenSize()}
local page = "http://mta/local/index.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)