Overview
@version marks a definition for specific Lua versions.
GLuaLS compares this annotation with runtime.version before it shows a field or function.
Garry’s Mod projects target LuaJIT. Use this annotation in shared annotation files and standard-library docs.
Syntax
>, <.
> 5.1means Lua 5.1 and newer< 5.4means Lua 5.4 and older- Versions:
5.1,5.2,5.3,5.4,JIT
Usage
Compatibility
Set your workspace version withruntime.version. In a Garry’s Mod project, choose LuaJIT.