|
|
@ -12,13 +12,14 @@ fn_install_resources(){ |
|
|
|
echo "" |
|
|
|
echo "Installing Default Resources" |
|
|
|
echo "=================================" |
|
|
|
fileurl="http://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip"; filedir="${tmpdir}"; filename="multitheftauto_resources.zip"; executecmd="noexecute" run="norun"; force="noforce"; md5="97a587509698f7f010bcd6e5c6dd9c31" |
|
|
|
fileurl="http://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip"; filedir="${tmpdir}"; filename="multitheftauto_resources.zip"; executecmd="noexecute" run="norun"; force="noforce"; md5="nomd5" |
|
|
|
fn_fetch_file "${fileurl}" "${filedir}" "${filename}" "${executecmd}" "${run}" "${force}" "${md5}" |
|
|
|
fn_dl_extract "${filedir}" "${filename}" "${resourcesdir}" |
|
|
|
echo "Default Resources Installed." |
|
|
|
} |
|
|
|
|
|
|
|
fn_print_header |
|
|
|
|
|
|
|
fn_print_warning_nl "Installing the default resources with existing resources may cause issues." |
|
|
|
while true; do |
|
|
|
read -e -i "y" -p "Do you want to install MTA default resources? [Y/n]" yn |
|
|
@ -27,4 +28,4 @@ while true; do |
|
|
|
[Nn]* ) break;; |
|
|
|
* ) echo "Please answer yes or no.";; |
|
|
|
esac |
|
|
|
done |
|
|
|
done |
|
|
|