Fivem Lua Cleaner

posted 16-03-2026 16:02 626 views 20 replies 2 users unlocked
The0c
0 Posts
7,938 Credits
N/A Since
#1 626 views 20 replies
Hello guys

I created a Fivem Lua Cleaner script, turns byte code into human readable code! It combines offline regex patterns with local AI via Ollama to automatically refactor your code.

- Install Python for compatibility
- install ollama so it can run the AI Models



Strips decompiled code and renames it into meaningless variables.

Fixes broken loops, labels, and chained method calls.

Supports zip processing so you can clean entire ZIP files at once.

Allows custom AI prompts to handle specific frameworks like ESX or QBCore.

You just need to run the cleaner, connect it to your Ollama, and drop your LUA files or ZIPs in it and the app it will handles the rest.

ImageImage
replies (19)
Ghost_90
103 Posts
20,539 Credits
Aug 2025 Since
#1
not useable for big lua files only for small one
QueSeYo
80 Posts
34,622 Credits
Feb 2026 Since
#2
Excellent, it works! It handles some files a little poorly, but it's fine. In future updates, you could add support for larger files.
The0c
24 Posts
7,938 Credits
Jun 2025 Since
#3
will fix this on the next update
PatatasFritas
36 Posts
183 Credits
Mar 2024 Since
#4
This is really amazing—I tried it today and it works like a charm.

My question is, are MLO files always clean?
QueSeYo
80 Posts
34,622 Credits
Feb 2026 Since
#5

PatatasFritas
Esto es realmente asombroso—Lo probé hoy y funciona de maravilla.

Mi pregunta es, ¿los archivos MLO están siempre limpios?


Esto es solo para limpiar archivos .lua, codigo, los MLOS que yo sepa no tienne archivos .lua, algunos si los tienne, si es asi pues deberás de limpiarlo con esta tool.
PatatasFritas
36 Posts
183 Credits
Mar 2024 Since
#6

QueSeYo
Esto es solo para limpiar archivos .lua, codigo, los MLOS que yo sepa no tienne archivos .lua, algunos si los tienne, si es asi pues deberás de limpia...


Yes, I know it's for Lua code; what I actually wanted to know is whether the files in the “stream” folder are usually encrypted, just like Lua files.

Just in case there's any executable or related code—I've never done this before.
QueSeYo
80 Posts
34,622 Credits
Feb 2026 Since
#7

PatatasFritas
Yes, I know it's for Lua code; what I actually wanted to know is whether the files in the “stream” folder are usually encrypted, just like Lua fi...


Yes, the files in the stream folder are usually encrypted. I think you have to decrypt it, fix it, and bypass it. I don't really know the order or what to do with stream folders.
maslenokwithaswitch
13 Posts
42 Credits
Mar 2025 Since
#8
when i used i got "AI Error None"
PatatasFritas
36 Posts
183 Credits
Mar 2024 Since
#9

maslenokwithaswitch
when i used i got "AI Error None"


Follow the steps as shown in the image
exu9x
294 Posts
4,613 Credits
Jan 2023 Since
#10
Some models work, some gives same Ai Error, gps-oss is giving the error
maslenokwithaswitch
13 Posts
42 Credits
Mar 2025 Since
#11

exu9x
Some models work, some gives same Ai Error, gps-oss is giving the error


can u tell me what models are work pls?
exu9x
294 Posts
4,613 Credits
Jan 2023 Since
#12
gpt-oss cloud isnt working
The0c
24 Posts
7,938 Credits
Jun 2025 Since
#13

exu9x
Some models work, some gives same Ai Error, gps-oss is giving the error


All models work, you need to download them on your machine in order to run them!
exu9x
294 Posts
4,613 Credits
Jan 2023 Since
#14

The0c
All models work, you need to download them on your machine in order to run them!



https://i.ibb.co/dsB2dxP5/Screenshot-1.png
everyone works except of cloud
leitoshere
93 Posts
45,015 Credits
Aug 2024 Since
#15
https://prnt.sc/KLHFE-4OLdSu

why 0 tokens and when it's ready it says it's ready but there's no code on the right.
The0c
24 Posts
7,938 Credits
Jun 2025 Since
#16

leitoshere
https://prnt.sc/KLHFE-4OLdSu

why 0 tokens and when it's ready it says it's ready but there's no code on the right.


Hi, Gemini has been discontinued. Please try any of the other alternative agents available on ollama
The0c
24 Posts
7,938 Credits
Jun 2025 Since
#17

leitoshere
https://prnt.sc/KLHFE-4OLdSu

why 0 tokens and when it's ready it says it's ready but there's no code on the right.


Hi, Gemini has been discontinued. Please try any of the other alternative agents available on ollama
PatataCaliente
44 Posts
13,860 Credits
Apr 2023 Since
#19
I get this error when I try to clear the code:

500 server error: internal server error for url: http://localhost:11434/api/chat

https://gyazo.com/b9cf360a3604743437d61910f641c21f
PatataCaliente
44 Posts
13,860 Credits
Apr 2023 Since
#20

The0c
Hi, Gemini has been discontinued. Please try any of the other alternative agents available on ollama


I've tried several models and they all give me the same error

https://gyazo.com/7235a00cb66aaddb64ea4ad57a9b23b2

You must be logged in to reply

Login Register