Decro Posted August 12, 2017 Share Posted August 12, 2017 Is there a way to create a resource, which will show some pictures/tips during player is loading resource files (on first join)? Link to comment
Forum Administrators Lpsd Posted August 12, 2017 Forum Administrators Share Posted August 12, 2017 (edited) 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 August 12, 2017 by LopSided_ 1 Link to comment
Decro Posted August 12, 2017 Author Share Posted August 12, 2017 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. 1 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now