Thehookerkiller01 Posted March 2, 2012 Share Posted March 2, 2012 Another interesting method is compiling all client scripts to one file. It's can be done by lua compiler too. Which Lua compiler Another interesting method is to script object-oriented.Since thieves can't understand it I'm pretty sure they will fail at using it. Example is my anticheat which was stolen but failed completely. It simply killed everybody who joined. How are you going to realise this? Link to comment
JR10 Posted March 2, 2012 Share Posted March 2, 2012 You bumped an old topic, next time check the last post date. Link to comment
Moderators IIYAMA Posted February 16, 2013 Moderators Share Posted February 16, 2013 Not bumping* just need to know, because this post is inside the tools. viewtopic.php?f=91&t=31891 >How to make client scripts exist only in memory< Well how do I set up this? Must the .lua client file that should be read in the meta? Must this "Client Lua file:" also be in the file that should be read? Do I need one client file for reading and the other for the script that should be loaded in the memory? @ Postby Ransom on Tue Feb 08, 2011 4:44 am (page 1) Server Lua file: function RecieveScriptFromServer () local file = fileOpen ( 'CLIENTSIDE.lua', true )--This opens the script containing the clientside script inside the resource if file then local packets = {} local counter = 1 while not fileIsEOF(file) do packets[counter] = fileRead(file, 30000)--65535 byte send limit per trigger counter = counter + 1 end fileClose(file) triggerClientEvent ( "onRequestClientFiles", root, packets) else outputConsole("Client files are missing serverside!") end end addEvent( "onRecieveScriptFromServer", true ) addEventHandler( "onRecieveScriptFromServer", root, RecieveScriptFromServer ) Client Lua file: triggerServerEvent ( "onRecieveScriptFromServer", getLocalPlayer() ) function RequestClientFiles (clientCode) append = "" for k,v in ipairs(clientCode) do append = append..v end loadstring(append)() end addEvent( "onRequestClientFiles", true ) addEventHandler( "onRequestClientFiles", root, RequestClientFiles ) Link to comment
Deltanic Posted February 16, 2013 Share Posted February 16, 2013 What is this about? You can just use the protected="true" attribute in your meta.xml. For instance this: <script src="myscript.lua" type="client" protected="true" /> Link to comment
Moderators IIYAMA Posted February 16, 2013 Moderators Share Posted February 16, 2013 ah bedankt / thx Link to comment
Anderl Posted February 17, 2013 Share Posted February 17, 2013 What is this about? You can just use the protected="true" attribute in your meta.xml. For instance this: <script src="myscript.lua" type="client" protected="true" /> I remember that not working in Linux, not sure if it has been solved already. Link to comment
Deltanic Posted February 17, 2013 Share Posted February 17, 2013 That and some other issues have already been fixed some time ago by ryden himself. Link to comment
iPrestege Posted February 17, 2013 Share Posted February 17, 2013 That and some other issues have already been fixed some time ago by ryden himself. Can you tell me what this means did you do? Link to comment
Deltanic Posted February 17, 2013 Share Posted February 17, 2013 What do you want to know? There's not much more to tell.. Ryden has fixed most of the issues that existed with the protected parameter, thats all I said. Link to comment
iPrestege Posted February 17, 2013 Share Posted February 17, 2013 What do you want to know? There's not much more to tell.. Ryden has fixed most of the issues that existed with the protected parameter, thats all I said. Sorry i mean about the protected . Link to comment
Deltanic Posted February 17, 2013 Share Posted February 17, 2013 With the protected attribute you can make your scripts only load into the client's memory. That means, your script is not saved in the clientside resource cahe making it a lot harder for others to steal your scripts. Link to comment
iPrestege Posted February 17, 2013 Share Posted February 17, 2013 With the protected attribute you can make your scripts only load into the client's memory. That means, your script is not saved in the clientside resource cahe making it a lot harder for others to steal your scripts. That means if I used it there is no need to use fileDelete? Link to comment
Deltanic Posted February 17, 2013 Share Posted February 17, 2013 Exactly. And besides that, no need to compile your scripts either. Link to comment
iPrestege Posted February 17, 2013 Share Posted February 17, 2013 Exactly. And besides that, no need to compile your scripts either. Thank you so much I'm going to try it in the future . 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