SkatCh Posted May 2, 2014 Share Posted May 2, 2014 Guys please i need some help , i add many scripts in my server resource folder and i want when players join my server and download all my resources they will find it crypted so they can't open it example : .luac i am sorry about my english skills. Link to comment
SkatCh Posted May 2, 2014 Author Share Posted May 2, 2014 Sorry i try and i uploaded my resource .luac but when my friend join my sever he find two file inside the resource folder .luac and lua so he can edit my script i want players see just the luac file (encrypted one) Link to comment
-.Paradox.- Posted May 2, 2014 Share Posted May 2, 2014 That's because he joined before you crypted the lua files.. Or remove client.lua from meta.xml Link to comment
xXMADEXx Posted May 3, 2014 Share Posted May 3, 2014 You can try something like this inside your lua file: if ( fileExists ( "client.lua" ) ) then fileDelete ( "client.lua" ) end Link to comment
Mr_Moose Posted May 3, 2014 Share Posted May 3, 2014 You can try something like this inside your lua file: Addition to this: Only use that in the end of your file and absolutely not in your server files, only client files. Considering that it's a good way to protect your files, only client files are downloaded. Link to comment
SkatCh Posted May 3, 2014 Author Share Posted May 3, 2014 thank you all i will try it Link to comment
Saml1er Posted May 3, 2014 Share Posted May 3, 2014 Just edit your meta: <script src="YourFileName.lua" type="client" cache="false"/> // cache to false. Link to comment
WASSIm. Posted May 3, 2014 Share Posted May 3, 2014 read this: https://wiki.multitheftauto.com/wiki/Meta.xml Source code for this resource, possible parameters are: src: The file name of the source code type: The type of source code: "client", "server" or "shared". cache: When the script file type is "client", this setting controls whether the file is saved on the clients' hard drive. Default is "true". Using "false" will mean the file is not saved. validate: If set to "false", compatibility checks are skipped. Link to comment
SkatCh Posted May 3, 2014 Author Share Posted May 3, 2014 thank you guys , please another question how can i disable Vote mode in my server , i disbled freeroam game mode but when i click F9 , votepanel appear what can i do ? Link to comment
SkatCh Posted May 3, 2014 Author Share Posted May 3, 2014 no i mean i want to remove from my resource , i will never use it . Link to comment
-.Paradox.- Posted May 3, 2014 Share Posted May 3, 2014 And don't forget to remove the votemanager line from mtaserver.conf 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