How can i fix a decompiled lua file?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
taresz1337
Posts: 3
Joined: Wed Dec 18, 2019 2:29 pm

How can i fix a decompiled lua file?

Post by taresz1337 »

So i decompiled a luac file to a lua file, and now it's no longer working.
Can someone help me?
I've attached the code in question.
source.rar
taresz1337
Posts: 3
Joined: Wed Dec 18, 2019 2:29 pm

Re: How can i fix a decompiled lua file?

Post by taresz1337 »

Also, i forgot:
The game is Multi Theft Auto
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: How can i fix a decompiled lua file?

Post by LolHacksRule »

What were the 8 bytes of the LUAC file? I need to know the Lua version.
taresz1337
Posts: 3
Joined: Wed Dec 18, 2019 2:29 pm

Re: How can i fix a decompiled lua file?

Post by taresz1337 »

Here is the original script if this helps.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: How can i fix a decompiled lua file?

Post by LolHacksRule »

Appears to be Lua 5.1.x (32-bit). I found these: https://luac.mtasa.com/ https://mta.dzek.eu/compiler/