Instead of this:
The functions even return an integer if there is one to return.
All functions won't work since there are probably some float arguments somewhere, but most should work.
I know there's probably a simpler way of doing this but this should be good enough for now for people that just got into scripting and don't want to mess with that PushInt() crap.
To use this in your script you have to load it in with with some function (tell me what, I don't know how to include files in Lua) or just copy it on top of your script (it will be very messy I know)
Tell me how it works for you.