ironimust Posted June 25, 2023 Share Posted June 25, 2023 How can I use the "cache" command for Vehicle Mods? Or how do I prevent Vehicle Mods from landing in players' resources folder? https://imgyukle.com/i/rgmdK0 ---("cache" command doesn't work to hide tool mode.) https://imgyukle.com/i/rgvRbp ---(The vehicle mod has landed on the player's computer.) Link to comment
Prever77 Posted June 25, 2023 Share Posted June 25, 2023 By "Vehicle mod" you mean. Vehicle txd files ? btw links doesn't work Link to comment
ironimust Posted June 26, 2023 Author Share Posted June 26, 2023 19 hours ago, Prever77 said: By "Vehicle mod" you mean. Vehicle txd files ? btw links doesn't work yes, I want to keep the files .txd and .dff Link to comment
Prever77 Posted June 26, 2023 Share Posted June 26, 2023 (edited) Ok. You can do it by three options. First is by defining cache in meta xml <file src="car.txd" chache="false" /> This will cause that models will be loaded only to dynamic memory (RAM) Nothing lands on hard drive. But every time client connects with server. He needs to download resource every time. If your hosting is so poor. And upload speeds are more like, communicating with voyager 1 . This will not pass the test. For example. Client 1 joined to server first time. He's speed connection is realy poor. He waited 20minutes to join the server. He loged out. And on the next day joined again. But this time he will wait 5minutes to download resource that he downloaded yesterday but not saved on HD. If server network speed condition will be same or worser than Clients 1. Then time will be doubled. Second way is to use fileDelete() This will do simmilar thing. But this can sometimes cause issues. To be honest, i used it once. And it makes things more complicated. Third way is to compile code. This can be useful in pair with xml cache. But only if you want to secure something very fragile on client side. Idk maybe you made hashing password system on client side. (Which is terrible idea) and you want to secure this script from being seen by third person. Edited June 26, 2023 by Prever77 Link to comment
ironimust Posted June 26, 2023 Author Share Posted June 26, 2023 5 minutes ago, Prever77 said: Ok. You can do it by three options. First is by defining cache in meta xml <file src="car.txd" chache="false" /> This will cause that models will be loaded only to dynamic memory (RAM) Nothing lands on hard drive. But every time client connects with server. He needs to download resource every time. If your hosting is so poor. And upload speeds are more like, communicating with voyager 1 . This will not pass the test. For example. Client 1 joined to server first time. He's speed connection is realy poor. He waited 20minutes to join the server. He loged out. And on the next day joined again. But this time he will wait 5minutes to download resource that he downloaded yesterday but not saved on HD. If server network speed condition will be same or worser than Clients 1. Then time will be doubled. Second way is to use fileDelete() This will do simmilar thing. But this can sometimes cause issues. To be honest, i used it once. And it makes things more complicated. Third way is to compile code. This can be useful in pair with xml cache. But only if you want to secure something very fragile on client side. Idk maybe you made hashing password system on client side. (Which is terrible idea) and you want to secure this script from being seen by third person. "Third way is to compile code." how can i do this way? Link to comment
Prever77 Posted June 26, 2023 Share Posted June 26, 2023 45 minutes ago, ironimust said: "Third way is to compile code." how can i do this way? If you are using Linux you can use easely linux API. If Mac or Windows. The easiest way is to use WEB tool https://luac.mtasa.com/. It compiles lua code, idk how about model files. Link to comment
ironimust Posted June 27, 2023 Author Share Posted June 27, 2023 17 hours ago, Prever77 said: If you are using Linux you can use easely linux API. If Mac or Windows. The easiest way is to use WEB tool https://luac.mtasa.com/. It compiles lua code, idk how about model files. A web tool that compiles code, how will it hide model files? I have already hidden the files named .lua, only the model files are not hidden. [url=https://www.hizliresim.com/n1eehyo][img=https://i.hizliresim.com/n1eehyo.PNG][/url] [url=https://www.hizliresim.com/bxyrt6l][img=https://i.hizliresim.com/bxyrt6l.PNG][/url] [url=https://www.hizliresim.com/pchlmwu][img=https://i.hizliresim.com/pchlmwu.PNG][/url] Link to comment
βurak Posted June 27, 2023 Share Posted June 27, 2023 1 hour ago, ironimust said: A web tool that compiles code, how will it hide model files? I have already hidden the files named .lua, only the model files are not hidden. [url=https://www.hizliresim.com/n1eehyo][img=https://i.hizliresim.com/n1eehyo.PNG][/url] [url=https://www.hizliresim.com/bxyrt6l][img=https://i.hizliresim.com/bxyrt6l.PNG][/url] [url=https://www.hizliresim.com/pchlmwu][img=https://i.hizliresim.com/pchlmwu.PNG][/url] try this for models https://mtaclub.eu/pcrypt Link to comment
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