Lua documentation
API reference, events and examples for scripting in Soggy.
API reference
- clientCallbacks, logging and game utilities
- entityPlayers, entities and properties
- rendererText, shapes and textures
- uiMenu controls and settings
- globalsTiming and game state
- All namespaces →
Example
-- Draw text while in-game.
local function on_paint()
renderer.text(24, 24, 255, 255, 255, 255, "", 0, "Hello, world!")
end
client.set_event_callback("paint", on_paint)