Jump to content

Minigame While Downloading Resources


Recommended Posts

Posted (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 by rouzbeh_TopGTA
Posted (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 by pa3ck
  • Like 2
Posted (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 by rouzbeh_TopGTA
Posted (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 by rouzbeh_TopGTA
Posted
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.
  • Like 2
Posted
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

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...