HUNGRY:3 Posted May 31, 2015 Posted May 31, 2015 (edited) REMOVED USELESS Edited June 1, 2015 by Guest
SunArrow Posted May 31, 2015 Posted May 31, 2015 Your code has errors, and it's basically useless as there's cache attribute in meta already. (also your script would only protect scripts when a player would login)
xXMADEXx Posted May 31, 2015 Posted May 31, 2015 even if it has errors it works actually, your script wouldn't even work.. You put an extra end so that would give an Lua syntax error, and you made it on the server side when it should be on the client side, meaning it's going to delete the scripts from the server rather than the client.
xXMADEXx Posted May 31, 2015 Posted May 31, 2015 changed It still uses the onPlayerLogin event, which is a server-side only event. You should test your scripts before releasing them.
Walid Posted May 31, 2015 Posted May 31, 2015 changed use tables Example: local resources = {"name.lua","name.lua","name.lua","name.lua","etc..."} function protect () for i , v in ipairs (resources) do fileDelete(tostring(v[1])) end end
Tekken Posted May 31, 2015 Posted May 31, 2015 (edited) This is useless cause the player have to redownload the files every time and if you have like 300MB to download.... And also use onClientPlayerLogin and Walid function. Even if you do it the player will still have acces to files before login so... Edited June 1, 2015 by Guest
HUNGRY:3 Posted June 1, 2015 Author Posted June 1, 2015 This is useless cause the player have to redownload the files every time and if you have like 300MB to download....And also use onClientPlayerLogin and Walid function. Even if you do it the player will still have acces to files before login so... yeah that's the problem
ALw7sH Posted June 1, 2015 Posted June 1, 2015 Just use https://luac.multitheftauto.com and/or https://community.multitheftauto.com/index.php?p= ... ls&id=9219
Walid Posted June 1, 2015 Posted June 1, 2015 * fileDelete: the script file will be downloaded in the hard disk which mean you can steal the script while you downloading. * cache: the script will be downloaded directly in the RAM and not in the hard disk. Both methods the client have to download the files each time he connect. Compile scripts that's the best way.
John Smith Posted June 1, 2015 Posted June 1, 2015 Basically this script is useless and it will confuse new users
Tekken Posted June 1, 2015 Posted June 1, 2015 * fileDelete: the script file will be downloaded in the hard disk which mean you can steal the script while you downloading.* cache: the script will be downloaded directly in the RAM and not in the hard disk. Both methods the client have to download the files each time he connect. Compile scripts that's the best way. +1
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