JoZeFSvK Posted February 21, 2013 Share Posted February 21, 2013 Hey i wanna have ask, i wanna security for my script against thieves. i try create zip and password it but i see in server console "could not parse meta" so i unpassword meta and console dont say but script dont work, How i save my script from thieves? Link to comment
csiguusz Posted February 21, 2013 Share Posted February 21, 2013 lol, thieves? How could anybody stole your scripts from the server? Use good passwords and it should not happen. You can protect client-sided script files from being read by the players by setting cache to "false" in the meta.xml ( https://wiki.multitheftauto.com/wiki/Meta.xml%20) Link to comment
JoZeFSvK Posted February 21, 2013 Author Share Posted February 21, 2013 when i write cache="false"/> will not be downloaded client ?, but player have slow internet connection and will try stole ? its as "fileDelete" ... on end script ?. or this dont download client ? Link to comment
csiguusz Posted February 21, 2013 Share Posted February 21, 2013 Some files must be downloaded, you cant avoid this, but if you set cache="false" then it wil not be saved on the client's computer. fileDelete does the same thing. Link to comment
Anderl Posted February 21, 2013 Share Posted February 21, 2013 Another way to protect is using loadstring and server-side file functions. Link to comment
Metall Posted February 21, 2013 Share Posted February 21, 2013 When someone enter your server, they download all files, but does only save the client file, not meta or serverside. So, it's already protected, but if you wan't more protection use: fileDelete or a compiler. Link to comment
JoZeFSvK Posted February 21, 2013 Author Share Posted February 21, 2013 thank you for all your reply Link to comment
Anderl Posted February 21, 2013 Share Posted February 21, 2013 When someone enter your server, they download all files, but does only save the client file, not meta or serverside.So, it's already protected, but if you wan't more protection use: fileDelete or a compiler. Neither compiling files or using fileDelete will do any good. If you use compiler anyone will be able to decompile it, easily. If you use fileDelete, you can leave the server before the download ends and so having files already downloaded saved on the cache. Link to comment
TAPL Posted February 21, 2013 Share Posted February 21, 2013 loadstring nor fileDelete not needed anymore, now MTA has new feature that you can make your client script not saved on the players hard drive by setting it in the meta. https://wiki.multitheftauto.com/wiki/Meta.xml FROM VERSION 1.3.1 r4909 ONWARDScache: When the script file type is "client", this setting controls whether the file is saved on the players hard drive. Default is "true". Using "false" will mean the file is not saved. Link to comment
Anderl Posted February 21, 2013 Share Posted February 21, 2013 That is exactly what has been said already, I just told him a second way to do it. Link to comment
JoZeFSvK Posted February 22, 2013 Author Share Posted February 22, 2013 If you use compiler anyone will be able to decompile it, easily. LoL ? I thought lua uncompliter don't exist Link to comment
Anderl Posted February 22, 2013 Share Posted February 22, 2013 It does, and you can find it with lil search on Google. 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