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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Moderators IIYAMA Posted January 10, 2013 Moderators Posted January 10, 2013 ok, thx Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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