Standard Library
The Lux standard library is intentionally small. It does not patch table,
string, math, or GMod globals, and it does not wrap values in chainable
objects. You import the modules you need explicitly; generated Lua turns those
imports into ordinary locals.
@lux/std
@lux/std is usable from pure Lua/GLua code and does not depend on GMod
globals.
arrfor dense one-based arraysdictfor key/value tablessetfor boolean set tablesstrfor string utilitiesnumfor numeric helpersfuncfor tiny function helperspoolfor table reuse
Allocation-aware APIs
APIs with simple names may allocate and are suitable for one-off transforms or non-hot paths.
APIs ending in Into or InPlace reuse caller-provided tables:
Use these in HUD paint, Think hooks, VGUI layout, and other per-frame paths.
@lux/gmod
@lux/gmod is the GMod-specific helper package. It may use globals such as
IsValid, hook, timer, net, util, player, ents, Color, and
vgui.
validhookxtimerxnetxjsonplayersentsxcolorvgui
netx.register uses a server { ... } realm block internally so
util.AddNetworkString is emitted only into the server artifact.