Console
Orbit doesn't work like internal cheats do when it comes to printing to the console. You cannot use the following code to write something into the menu console.
print("Hello World!") --this will not work
Orbit has its own console in the lua tab. Here's an example of how you write into it.
Print("Hello World!") --this will work
The console will not exceed 100 string elements, however, if you'd like to use the console interface for something cool like interacting with the user, you can try the following.
Clear() --clear any previous logs
Print("[ BestLua.XYZ ] - Lua successfully loaded!") --this makes the lua feel much more premium
The "Print" function only accepts strings as an argument. You cannot pass it a number and hope it will convert it to a string automatically. You can use the built in "tostring" function to convert the arguments into strings.
Print(123 + 456) --this will not work
Print(tostring(123 + 456)) --this will work
Was this page helpful?