Paplo Posted January 9, 2013 Share Posted January 9, 2013 I want someway to Encryption the scripts that no one can cross it Link to comment
Anderl Posted January 9, 2013 Share Posted January 9, 2013 Don't let the file be downloaded to the client's computer, load it into memory only. Link to comment
Paplo Posted January 9, 2013 Author Share 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 : / Link to comment
Anderl Posted January 9, 2013 Share 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. Link to comment
h4x7o0r Posted January 9, 2013 Share 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. Link to comment
Moderators IIYAMA Posted January 9, 2013 Moderators Share 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? Link to comment
Anderl Posted January 9, 2013 Share 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. Link to comment
Moderators IIYAMA Posted January 10, 2013 Moderators Share Posted January 10, 2013 ok, thx 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