#!/bin/bash # LinuxGSM command_install_resources_mta.sh function # Author: Daniel Gibbs # Website: https://linuxgsm.com # Description: Installs the default resources for Multi Theft Auto. local commandname="DEFAULT_RESOURCES" local commandaction="Default Resources" local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")") fn_install_resources(){ echo -e "" echo -e "Installing Default Resources" echo -e "=================================" fn_fetch_file "http://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip" "${tmpdir}" "mtasa-resources-latest.zip" "nochmodx" "norun" "noforce" "nomd5" fn_dl_extract "${tmpdir}" "mtasa-resources-latest.zip" "${resourcesdir}" echo -e "Default Resources Installed." } fn_print_header if [ -z "${autoinstall}" ]; then fn_print_warning_nl "Installing the default resources with existing resources may cause issues." if fn_prompt_yn "Do you want to install MTA default resources?" Y; then fn_install_resources fi else fn_print_warning_nl "Default resources are not installed when using ./${selfname} auto-install." fn_print_information_nl "To install default resources use ./${selfname} install" fi core_exit.sh