Ryuto Posted January 28, 2023 Share Posted January 28, 2023 (edited) Is there any method to protect lua files? Is there a function for the .lua to work only on a server with a certain ip? does "cache=false" protect lua client side well? Thank you!!! Edited January 28, 2023 by Ryuto Link to comment
Shady1 Posted January 28, 2023 Share Posted January 28, 2023 (edited) 43 minutes ago, Ryuto said: Is there any method to protect lua files? Is there a function for the .lua to work only on a server with a certain ip? does "cache=false" protect lua client side well? Thank you!!! You can actually do it with Luac encrypted to protect your Lua source file,but remember save and backup your Lua file before making Luac,because after you encrypt your Lua file with Luac, it is irreversible, so you can't restore it, so save your files. If you want to keep it, most of the shared functions are transferred to the server side,so you give less transfer to client side,but in terms of performance it may not be good to load all the load on the server side You can use cache=false , it will just prevent it from downloading your source file in MTA file location and client side will not be able to access this file https://forum.multitheftauto.com/topic/67224-luacmtasacom-and-us/ Edited January 28, 2023 by Shady1 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