print(...)Print values to the Lua console.
Global functions, constructors, environment, and the globals table.
print(...)Print values to the Lua console.
printc(...)Print values with a leading r,g,b,a color prefix.
notify(...)Show an on-screen toast notification.
LoadScript(name:string):booleanLoad and run a Lua script by name.
UnloadScript(name:string):booleanUnload a running Lua script by name.
GetScriptName():stringName of the current script's environment.
Vector3(x?:number, y?:number, z?:number):Vector3Create a Vector3; missing args default to 0.
EulerAngles(pitch?:number, yaw?:number, roll?:number):Vector3Create an angle; returns a Vector3.
BitBuffer():BitBufferCreate an empty bit buffer.
os.clock():numberCPU time used by the process in seconds.
os.time()Current time as a Unix timestamp.
os.date(format?:string, time?:number):stringFormat a timestamp; defaults to the current time.
string.split(s:string, sep:string):tableSplit a string into a table by separator.
package.path:stringModule search path; Verge\lua\?.lua is included.
globals.realtime():numberReal time since the game started, in seconds.
globals.curtime():numberServer time of the current tick, in seconds.
globals.frametime():numberTime elapsed during the last frame, in seconds.
globals.absoluteframetime():numberAbsolute time elapsed during the last frame, in seconds.
globals.framecount():numberNumber of frames rendered since the game started.
globals.tickcount():numberCurrent server tick number.
globals.maxclients():numberMaximum number of clients the server accepts.
globals.interval_per_tick():numberDuration of one tick, in seconds.
globals.interpolation_amount():numberInterpolation amount of the current frame.
globals.RealTime():numberAlias of globals.realtime.
globals.CurTime():numberAlias of globals.curtime.
globals.FrameTime():numberAlias of globals.frametime.
globals.FrameCount():numberAlias of globals.framecount.
globals.TickCount():numberAlias of globals.tickcount.
globals.MaxClients():numberAlias of globals.maxclients.
globals.IntervalPerTick():numberAlias of globals.interval_per_tick.
globals.InterpolationAmount():numberAlias of globals.interpolation_amount.
globals.TickInterval():numberAlias of globals.interval_per_tick.
globals.AbsoluteFrameTime():numberAlias of globals.absoluteframetime.