SkatCh Posted May 2, 2014 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. Failure is simply an opportunity to begin again more intelligently - Henry Ford
Dealman Posted May 2, 2014 Posted May 2, 2014 MTA Lua Compiler If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
SkatCh Posted May 2, 2014 Author 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) Failure is simply an opportunity to begin again more intelligently - Henry Ford
-.Paradox.- Posted May 2, 2014 Posted May 2, 2014 That's because he joined before you crypted the lua files.. Or remove client.lua from meta.xml If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
xXMADEXx Posted May 3, 2014 Posted May 3, 2014 You can try something like this inside your lua file: if ( fileExists ( "client.lua" ) ) then fileDelete ( "client.lua" ) end The Ultimate Lua Tutorial! | MTA PHP SDK
Mr_Moose Posted May 3, 2014 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. MTA Community | GitHub | 99Stack Forum
SkatCh Posted May 3, 2014 Author Posted May 3, 2014 thank you all i will try it Failure is simply an opportunity to begin again more intelligently - Henry Ford
Saml1er Posted May 3, 2014 Posted May 3, 2014 Just edit your meta: <script src="YourFileName.lua" type="client" cache="false"/> // cache to false.
WASSIm. Posted May 3, 2014 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.
SkatCh Posted May 3, 2014 Author 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 ? Failure is simply an opportunity to begin again more intelligently - Henry Ford
-.Paradox.- Posted May 3, 2014 Posted May 3, 2014 /stop votemanager If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
SkatCh Posted May 3, 2014 Author Posted May 3, 2014 no i mean i want to remove from my resource , i will never use it . Failure is simply an opportunity to begin again more intelligently - Henry Ford
-.Paradox.- Posted May 3, 2014 Posted May 3, 2014 And don't forget to remove the votemanager line from mtaserver.conf If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
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