Paplo Posted January 9, 2013 Posted January 9, 2013 I want someway to Encryption the scripts that no one can cross it
Anderl Posted January 9, 2013 Posted January 9, 2013 Don't let the file be downloaded to the client's computer, load it into memory only.
Paplo Posted January 9, 2013 Author Posted January 9, 2013 Don't let the file be downloaded to the client's computer, load it into memory only. i use filedelete but not worked : /
Anderl Posted January 9, 2013 Posted January 9, 2013 I didn't say anything about fileDelete, I'm talking about reading script files content and loading it into memory with loadstring.
h4x7o0r Posted January 9, 2013 Posted January 9, 2013 Just found this post from AnderI. https://forum.multitheftauto.com/viewtopic.php?f=91&t=50881 Maybe this could be useful for you.
Moderators IIYAMA Posted January 9, 2013 Moderators Posted January 9, 2013 You have a sample of loadstring? local file = fileOpen( ":resource/file.ext" ); if ( file ) then loadstring( fileRead( file, fileGetSize( file ) ) )(); end fileClose( file ); and will it matter if you are running a windows or linux server?
Anderl Posted January 9, 2013 Posted January 9, 2013 The code in that topic will have to be changed since you need to get the file's content from server-side, otherwise you need to download the file first. @IIYAMA, it won't matter.
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