orel56000 Posted September 29, 2017 Share Posted September 29, 2017 I saw a server that shows me custom hud on my screen such as pictures and texts, I opened my files and I saw that only the pictures of this server have downloaded without even a one clientside script, how they have done that? thanks for helpers Link to comment
itHyperoX Posted September 29, 2017 Share Posted September 29, 2017 (edited) if fileExists("client.lua") then fileDelete("client.lua") end Put this in your client side script, then rename the "client.lua" with your .lua name. Edited September 29, 2017 by TheMOG Link to comment
Dimos7 Posted September 29, 2017 Share Posted September 29, 2017 no need that <meta> <script src="client.lua" type="client" cache="false"/> </meta 1 Link to comment
koragg Posted September 29, 2017 Share Posted September 29, 2017 (edited) Never understood this. Yeah, sure - it makes stealing the script less possible but players have to download the same client files every time they join the server...instead of downloading them just once on their first join. Edited September 29, 2017 by koragg Link to comment
Overkillz Posted September 30, 2017 Share Posted September 30, 2017 Instead of using fileDelete or adding cache="false" to meta.xml I recommend you to use Lua Compiler: https://luac.multitheftauto.com/ In my opinion its the best way to keep ur files secure. Yes, they can download the files, but they can't use them. I think this is the goal of it. Regards. Link to comment
orel56000 Posted September 30, 2017 Author Share Posted September 30, 2017 14 minutes ago, Overkillz said: Instead of using fileDelete or adding cache="false" to meta.xml I recommend you to use Lua Compiler: https://luac.multitheftauto.com/ In my opinion its the best way to keep ur files secure. Yes, they can download the files, but they can't use them. I think this is the goal of it. Regards. Yea I know about that solution but I wanted to know that too.. and I think it is easier to just write cache="false" insted using luac.. And it is just scripts.. I dont care if it will redownload it everytime cause it will not be up to 3 seconds to download all the scripts.. don't u think? Link to comment
koragg Posted September 30, 2017 Share Posted September 30, 2017 6 hours ago, orel56000 said: Yea I know about that solution but I wanted to know that too.. and I think it is easier to just write cache="false" insted using luac.. And it is just scripts.. I dont care if it will redownload it everytime cause it will not be up to 3 seconds to download all the scripts.. don't u think? Depends on the amount of client files and the player's Internet speed Link to comment
John Smith Posted September 30, 2017 Share Posted September 30, 2017 Scripts are relatively in very small sizes of just few kilobytes, and even if you had lots of resources with lots of scripts, it would probably never exceed 1 MB of download, and for normal users it never really exceeds 200 kb. If someone has a problem downloading this small amount of kilobytes, then they shouldn't even use the internet at all. 1 2 Link to comment
Moderators IIYAMA Posted September 30, 2017 Moderators Share Posted September 30, 2017 Reading(+decrypting) and loading of the scripts takes probably much longer. 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