Quote Originally Posted by Syntax View Post
You wrote the file as text, not binary (wb) so it fudged it up.
Anyways, here's the completely decompiled source:

lua code:
local h4x = function(strtbl)
buffer = ""
for v in strtbl do
buffer = buffer .. strtbl[v]
end
return buffer
end

stamHUD = HUD.New(10, 23, "Stamina: ", 255, 255, 255)
stam2HUD = HUD.New(65, 23, "", 0, 255, 0)
_G.refreshHUD = Module.New("refreshHUD", function(module)
stam = math.floor(Self.Stamina() / 60)
stam2 = math.floor((Self.Stamina() / 60 - stam) * 60)
stam2HUD:SetText(stam .. ":" .. stam2)
if Self.Stamina() <= 2400 then
stam2HUD:SetTextColor(210, 105, 30)
else
if Self.Stamina() <= 840 then
stam2HUD:SetTextColor(255, 0, 0)
end
end
end)


Wasn't going to post if it was critical info, but it seemed fine to post, let me know if you want it taken down.
(edit: just noticed you posted this code in another thread :P)

As you can probably tell the restructuring is a bit off, but the gist of the information is saved.


Also, @Milice, he probably didn't compile it, string.dump saves the function in bytecode of course, so that's what you were seeing.
But he might have, it would look about the same.