Mike269 Posted March 16, 2015 Posted March 16, 2015 Hello guys does anyone know any script that include optional mods? Because I have a server and I don't want to make players wait cuz of skins, mods and weapons. A command to turn the gui on could be like /mods and then you click download on mod you like. Thanks!
Tekken Posted March 17, 2015 Posted March 17, 2015 As far as i know it doesn't exist but is not hard to make. You just need to make this in meta.xml <meta> <file src="file.dff" download="false" /> <file src="file.txd" download="false" /> </meta> And on file.lua function DonloadFiles() txd = engineLoadTXD("file.txd") engineImportTXD(txd, ID) dff = engineLoadDFF("file.dff", ID) engineReplaceModel(dff, ID) end addCommandHandler("download", DonloadFiles) Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Anubhav Posted March 17, 2015 Posted March 17, 2015 It won't work, mihayy5. You never downloaded the files. Remove the download="false" in meta.xml and it will work perfect. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Tekken Posted March 17, 2015 Posted March 17, 2015 It won't work, mihayy5. You never downloaded the files. Remove the download="false" in meta.xml and it will work perfect. Oh yes but your way is not good, he want to download files only by command that means it must do this way: meta.xml <meta> <file src="file.dff" download="false" /> <file src="file.txd" download="false" /> </meta> And Lua: function DonloadFiles() downloadFile ( "flie.txd" ) downloadFile ( "flie.dff" ) txd = engineLoadTXD("file.txd") engineImportTXD(txd, ID) dff = engineLoadDFF("file.dff", ID) engineReplaceModel(dff, ID) end addCommandHandler("download", DonloadFiles) Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Anubhav Posted March 17, 2015 Posted March 17, 2015 Won't work, you never knew that file was downloaded or not? See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Mike269 Posted March 17, 2015 Author Posted March 17, 2015 I have that script but it's kind a weird to add more vehicles and skins, would be cool if anyone could add me and help, thanks! Skype - jack.vas1
Et-win Posted March 17, 2015 Posted March 17, 2015 First download and then if finished replace......... Your function really is not going to wait until the files are downloaded.. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
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