megaman54 Posted February 1, 2011 Share Posted February 1, 2011 Does these functions work in MTA scripts? > http://www.lua.org/manual/5.1/manual.html Link to comment
Arran Posted February 1, 2011 Share Posted February 1, 2011 (edited) Not entirely true actually. Coroutines don't work, all those lua_ and luaL_ functions aren't for lua, io ones don't work, os ones don't work, etc. Easiest way to check is to go in runcode and simply type the function name and if you can use it will return something like " function: 27E63500 [function]" Edited February 2, 2011 by Guest Link to comment
megaman54 Posted February 2, 2011 Author Share Posted February 2, 2011 Not entirely true actually.Coroutines don't work, all those lua_ and luaL_ functions aren't for lua, io ones don't work, os ones don't work, etc. Easiest way to check is to go in runcode and simply type the function name and if you can use it will return something like " function: 27E63500 [function]" So, is there a lua "emulator" where i could use those functions? Link to comment
SDK Posted February 2, 2011 Share Posted February 2, 2011 two ways: 1) using runcode (first start runcode resource), this can be done on the server console (example: "run split") or in the server when you're admin ("/run split") 2) using the admin panel ingame, at the resources tab (just "split" should do) Link to comment
megaman54 Posted February 2, 2011 Author Share Posted February 2, 2011 two ways:1) using runcode (first start runcode resource), this can be done on the server console (example: "run split") or in the server when you're admin ("/run split") 2) using the admin panel ingame, at the resources tab (just "split" should do) What does "split" do? Can i run os. lua functions then? Link to comment
SDK Posted February 2, 2011 Share Posted February 2, 2011 split was an example function https://wiki.multitheftauto.com/wiki/Split os. functions are not supported, you can get the time and do file stuff with these: https://wiki.multitheftauto.com/wiki/GetRealTime https://wiki.multitheftauto.com/wiki/FileCreate Link to comment
megaman54 Posted February 2, 2011 Author Share Posted February 2, 2011 Ok.. Can i execute .exe or .bat files with lua? Link to comment
Castillo Posted February 2, 2011 Share Posted February 2, 2011 Why would you execute a .bat or a .exe file? i see no point. Link to comment
megaman54 Posted February 2, 2011 Author Share Posted February 2, 2011 Just asking and thanks for the replys everybody! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now