How can i convert script lua to dll

I was wondering out of curiosity, if we could convert a .lua file to dll quickly and easily? thank you for your reply :slight_smile:

I think I found it but I’m not 100% sure it works for fivem. :upside_down_face:

That’s for compiling the Lua source code, you can’t just “convert” it you have to rewrite your Lua in C#

2 Likes

Compling Lua isn’t really worth it - all it does is marginally improve script performance, if at all, and gives almost nothing in the way of security. Decompiling Lua code is extremely simple and can be done by almost anyone.
If the reason you’re compiling your Lua code is to protect it from manipulation, use the proper method of moving any sensitive code and calculations onto the server and have the client receive pre-calculated data from the server. That leaves almost no headroom for any manipulation on the client and is a lot safer than obscuring your client code.

2 Likes

thank you for this information, it’s really useful to know that. :slight_smile:

ok i will see that thanks! Or maybe as scripts paid , obfuscated and minified script :upside_down_face:
thank you for the answer :slight_smile: