Skip to main content

Traceless Lua

Build scripts for Traceless v2 with its embedded LuaJIT runtime and Source 2 API.

local traceless = require("traceless")
local enabled = traceless.ui.new_checkbox("LUA", "Example", "Enabled")

traceless.events.on("paint", function()
if traceless.ui.get(enabled) then
traceless.render.indicator(125, 210, 255, 255, "Lua is running")
end
end)
  • Getting started: create and load your first project.
  • API reference: functions, userdata, constants, and returned values.
  • Examples: runnable projects with all required modules.
  • LuaJIT runtime: libraries, loading rules, compatibility, and the audited revision.

Custom APIs live under require("traceless"). Cloud and local projects share one Lua state, while bundled project modules have a cache for each script instance. Read the lifecycle guide before retaining references or creating resources.