emuk Posted August 10, 2014 Share Posted August 10, 2014 since no one wants to wait that finishes downloading resources, can I somehow to show an image (i have already a text but i prefer an image) during the download ? thanks Link to comment
xXMADEXx Posted August 10, 2014 Share Posted August 10, 2014 You can't show an image, you have to use the server-side text functions. Link to comment
Anubhav Posted August 10, 2014 Share Posted August 10, 2014 You can't show an image, you have to use the server-side text functions. Thats wrong! Cleary wront! addEventHandler("onClientRender", root, function() if isTransferBoxActive() then dxDrawImage("youArguments") end end ) Link to comment
xXMADEXx Posted August 10, 2014 Share Posted August 10, 2014 (edited) You can't show an image, you have to use the server-side text functions. Thats wrong! Cleary wront! addEventHandler("onClientRender", root, function() if isTransferBoxActive() then dxDrawImage("youArguments") end end ) onClientRender won't start until the resource is downloaded and started. It won't start until the entire server is downloaded. There for, your argument is invalid. Edited August 10, 2014 by Guest Link to comment
Et-win Posted August 10, 2014 Share Posted August 10, 2014 No, it's not wrong. Client-side scripts get started when downloading is done? So how do you even want to start the drawing of a DX element? (This is about when joining the server for the first time, or he does mean downloading with fetchRemote/downloadFile, then you can.) Link to comment
Anubhav Posted August 10, 2014 Share Posted August 10, 2014 onClientRender won't start until the resource is downloaded and started. It won't start until the entire server is downloaded. There for, your argument is invalid. How can you check if he is downloading the resources then lol?? Thats only the way I know. Link to comment
xXMADEXx Posted August 10, 2014 Share Posted August 10, 2014 onClientRender won't start until the resource is downloaded and started. It won't start until the entire server is downloaded. There for, your argument is invalid. How can you check if he is downloading the resources then lol?? Thats only the way I know. You can't call client functions when the client is still downloading. Therefor, you can't create an image while the client is downloading. Link to comment
emuk Posted August 10, 2014 Author Share Posted August 10, 2014 I had another idea: can I set to download only the map and the resource with the photo and after a few seconds with a timer download the rest? Link to comment
xXMADEXx Posted August 10, 2014 Share Posted August 10, 2014 I had another idea: can I set to download only the map and the resource with the photo and after a few seconds with a timer download the rest? No (Well, actually you could, but you would need to make a custom client download system), the closest thing you could probably do to setting an image while downloading is setCameraMatrix. Link to comment
DiSaMe Posted August 10, 2014 Share Posted August 10, 2014 https://wiki.multitheftauto.com/wiki/DownloadFile 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