Posted 01 March 2016 - 05:36 PM
I can't get the pictures to show up??
Sometimes a program will create Apis without having to be set as Apis. For example, the shell.
You can also do this. For example, I did it:
To do this follow these steps:
Enter somewhere that runs Lua:
type:
lua
Create an index:
type:
myIndex={}
Make Your Index Global:
type:
_G.myIndex = myIndex\
Make a function under the index:
type:
myIndex.myFunction(){print('test');}
test your function
type:
myIndex.myFunction()
You can also do this in the edit program:
Sometimes a program will create Apis without having to be set as Apis. For example, the shell.
You can also do this. For example, I did it:
To do this follow these steps:
Enter somewhere that runs Lua:
type:
lua
Create an index:
type:
myIndex={}
Make Your Index Global:
type:
_G.myIndex = myIndex\
Make a function under the index:
type:
myIndex.myFunction(){print('test');}
test your function
type:
myIndex.myFunction()
You can also do this in the edit program:
Edited on 01 March 2016 - 04:42 PM