Jump to content

Script Name


kewiiNNN

Recommended Posts

Posted
http://i.imgur.com/PMdmLWi.jpg

Does anybody have this script to share with me that you can spawn vehicle while you download.It says at the top of the screen downloading.Because in normal download mode i cant even open F1.

That's custom downloader lol and when you are downloading file's the CLIENT FILES ARE GETTING DOWNLOADED. So you can't open a GUI.

Posted
I can open gui F1 and spawn vehicles

Dude, if you're download resource ( not CUSTOM DOWNLOADER ) then YOU CAN'T.

He's using custom downloader to download mods. You don't understand me.

Posted

None of you actually answered what he is asking. Specifically he wants a downloader that uses delayed download and allows you to use F1 even while you're downloading the rest of the scripts. I don't know if a script exists for doing this.

Posted

I should state it's possible to do, as you see on that server, but I don't think anyone has shared such a tool publicly.

Posted

Well I know a few functions that could hide the default progress and then get the download info to be able to display it in a dx GUI like in your picture, the more complex part as I see it is how you can organize your resources, you could probably trigger onClientResourceStart for the resource root and get an event that starts as soon a specific resource is started and then add this resource first in your mtaserver.conf file to make it start first. Not sure if that would allow you to open and use a GUI during download tho.

Another option might be to focus only on the large files like pictures and stuff like that, setting their download parameter in meta.xml to false and use 'downloadFile' after they joined and logged in could probably allow you to download in the background as well. I'm not good enough in scripting to give and example of it but it should definitely be possible to do that.

Posted

Olle maybe you could this script so it will be in background and you can do other stuff like F1 spawn cars change skin and that? Cause i dont know how to script..

Posted
Olle maybe you could this script so it will be in background and you can do other stuff like F1 spawn cars change skin and that? Cause i dont know how to script..

I'll do it for a price.

Posted

$1.50 sounds cheap, will that include a GUI and all ;) Anyway, joking aside, downloadFile is the function you are looking for, either use that in every single resource to download pictures for example or a separate resource that handle downloads of any image based on the wiki example:

function onThisResourceStart ( ) 
    downloadFile ( "test.txt" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, onThisResourceStart ) 

This will basically start the download after the resource is started, after that you may use some kind of exported function to access the images downloaded from the image resource, the reason for downloading all images in the same resource is that it may be easier to calculate total download time and then display it during the download.

Posted
$1.50 sounds cheap, will that include a GUI and all ;) Anyway, joking aside, downloadFile is the function you are looking for, either use that in every single resource to download pictures for example or a separate resource that handle downloads of any image based on the wiki example:
function onThisResourceStart ( ) 
    downloadFile ( "test.txt" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, onThisResourceStart ) 

This will basically start the download after the resource is started, after that you may use some kind of exported function to access the images downloaded from the image resource, the reason for downloading all images in the same resource is that it may be easier to calculate total download time and then display it during the download.

Resource was sold with a progress bar :D

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