emuk Posted August 10, 2014 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
xXMADEXx Posted August 10, 2014 Posted August 10, 2014 You can't show an image, you have to use the server-side text functions. The Ultimate Lua Tutorial! | MTA PHP SDK
Anubhav Posted August 10, 2014 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 ) See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
xXMADEXx Posted August 10, 2014 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 The Ultimate Lua Tutorial! | MTA PHP SDK
Et-win Posted August 10, 2014 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.) ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Anubhav Posted August 10, 2014 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. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
xXMADEXx Posted August 10, 2014 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. The Ultimate Lua Tutorial! | MTA PHP SDK
emuk Posted August 10, 2014 Author 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?
xXMADEXx Posted August 10, 2014 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. The Ultimate Lua Tutorial! | MTA PHP SDK
DiSaMe Posted August 10, 2014 Posted August 10, 2014 https://wiki.multitheftauto.com/wiki/DownloadFile -
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