'LinKin Posted December 18, 2013 Share Posted December 18, 2013 Hello, Most of us compile client scripts for protecting them. But I've found this function which apparently deletes the file downloaded in MTA:SA/mods/deathmatch/resources from each client. fileDelete ("script.lua") Am I right? Also, I've seen in meta.xml a new attribute ("cache="false") This one is new for me, I'm not sure what it does. Link to comment
Desaster Posted December 19, 2013 Share Posted December 19, 2013 1) fileDelete deltes the file but your client have to download it it each time he connect and that sucks 2) cache="flase" this saves the file on the clients RAM so he also need to download it each visit and that also sucks =====> compile scripts that's the best way 1 Link to comment
TAPL Posted December 19, 2013 Share Posted December 19, 2013 With fileDelete, the script file will be downloaded in the hard disk and will load in the RAM and deleted from the hard disk after the resource start (you can still steal the script while you downloading). But with cache, the script will be downloaded directly in the RAM and not in the hard disk (almost impossible to steal the script unless you have much knowledge of ram address or whatever it called). 1 1 Link to comment
'LinKin Posted December 19, 2013 Author Share Posted December 19, 2013 Thanks both for ur info 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