rouzbeh_TopGTA Posted October 8, 2016 Posted October 8, 2016 (edited) Hi ! I like to have a minigame for players who downloading resources (like some servers)... i think its name : Advanced Download Screen any idea how do that? Edited October 8, 2016 by rouzbeh_TopGTA
pa3ck Posted October 8, 2016 Posted October 8, 2016 (edited) There's a client side function to check if the transfer box is active => user is still downloading. Make a timer that checks every x seconds if the box is still active and as soon as it's not, get rid of the game. Function: IsTransferBoxActive Edited October 8, 2016 by pa3ck 2
rouzbeh_TopGTA Posted October 9, 2016 Author Posted October 9, 2016 (edited) but its clientside! and client resources all download together, i need to set that resource download first and load in client, then download other resources... how? Edited October 9, 2016 by rouzbeh_TopGTA
pa3ck Posted October 9, 2016 Posted October 9, 2016 Put the mini-game resource to the top of your resource list in server.conf so it will be the first one to download.
rouzbeh_TopGTA Posted October 9, 2016 Author Posted October 9, 2016 (edited) as i know, mta download all resources at same time then load them together, its not load resources one by one... example of what i want: you join my server for first time and you should download resources for 50mb... you first download and load minigame resource for 1mb and then download other 49mb resources... so while you are downloading, you can play a minigame... Edited October 9, 2016 by rouzbeh_TopGTA
Walid Posted October 9, 2016 Posted October 9, 2016 2 hours ago, rouzbeh_TopGTA said: as i know, mta download all resources at same time then load them together, its not load resources one by one... example of what i want: you join my server for first time and you should download resources for 50mb... you first download and load minigame resource for 1mb and then download other 49mb resources... so while you are downloading, you can play a minigame... Use the <download_priority_group> put it in your resource meta.xml file <download_priority_group>1</download_priority_group> <download_priority_group/> If not set, the download priority group for a resource defaults to 0. If this is set higher than 0, then the resource will be downloaded and started on the client earlier than other resources. If set to less than 0, the resource will be downloaded and started on the client later than other resources. 2
rouzbeh_TopGTA Posted October 10, 2016 Author Posted October 10, 2016 On 10/9/2016 at 9:00 AM, Walid said: Use the <download_priority_group> put it in your resource meta.xml file <download_priority_group>1</download_priority_group> <download_priority_group/> If not set, the download priority group for a resource defaults to 0. If this is set higher than 0, then the resource will be downloaded and started on the client earlier than other resources. If set to less than 0, the resource will be downloaded and started on the client later than other resources. Thank You Very Much
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