What is the max data unit i can send through net events for example i want to send a huge lets say string. What is the max lenght ? Is there a limit? and would it lag the client or server?
No one knows ?
Test it, try a bunch variety of string lengths and run the resource monitor to see if anything occurs. What exactly are you attempting to do - if you dont mind me asking?
I believe the maximum somewhere is either 32 kB or 128 kB. Also since this will block the entire net channel at such a time (as there’s no support for rate-limited/unreliable events yet in a similar way to MTA:SA’s ‘latent’ events) it’s probably better to use an out-of-band communication channel to send a huge data set at runtime.
I want to keep all of my client side code at server side and send it through a net event as a string when player joins then run the code from memory in order to prevent people from stealing my code using lua executers.
Is there an interface or something i can use in lua in order to do that ?
spoiler: these ‘executors’ actually just hook chunk load functions so even if you do that they’ll still dump your scripts
Even though they can still see my code, with this approach i can encode/encrypt the code depending on the client and i would be harder for script kiddies to just steal it