Jump to content

Resource loading screen


Decro

Recommended Posts

  • Administrators

You could use a script similar to this

function downloadGUI()
    --display some GUI
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)

Make sure you take a look at "download_priority_group" in your meta.xml, so that this script downloads and starts before everything else!

https://wiki.multitheftauto.com/wiki/Meta.xml

Edited by LopSided_
  • Thanks 1
Link to comment
1 minute ago, LopSided_ said:

You could use a script similar to this


function downloadGUI()
    --display some GUI
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)

Make sure you take a look at "download_priority_group" in your meta.xml, so that this script downloads before everything else!

https://wiki.multitheftauto.com/wiki/Meta.xml

Ow, thank you very much. That's just what i was looking for :>

So i think that topic is solved from now.

  • Like 1
  • Confused 1
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...