function imagem()
dxDrawImage(986, 269, 349, 197, ":scr_screenloader/img/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
end
addEventHandler("onClientRender", root, imagem)
function checkTransfer()
if isTransferBoxActive() == true then
setTimer(checkTransfer,2000,1)
else
removeEventHandler("onClientRender", root, imagem)
end
end
addEventHandler("onClientResourceStart",resourceRoot,checkTransfer)
I need help with a script I'm trying to do, it's an image that stays open while downloading the resources and closes when the download is finished.
Obs: I already added as a goal, until I can make the image open but I can not make it close, with the code below it does not appear