Make use of our settings API
The settings API allows you to link your LUA variables to our settings system, providing an auto-generated user interface to modify any of your variables in real-time while your script is running.
Quick Overview
settings = {
someInt = 50,
someFloat = 5.5,
someOtherFeature = true,
name = "Bob",
textColor = Vec4:new(1, 0, 0, 1)
}
function tick()
draw.text(
"someInt: " .. tostring(settings.someInt),
Vec2:new(200, 200),
Vec4:new(255, 0, 0, 255),
60,
"Verdana"
)
draw.text(
"someFloat: " .. tostring(settings.someFloat),
Vec2:new(200, 260),
Vec4:new(255, 0, 0, 255),
60,
"Verdana"
)
draw.text(
settings.name,
Vec2:new(200, 320),
settings.textColor,
60,
"Verdana"
)
end
engine.addEventListener("render", tick);
Opening the Settings Hub


Saving & Loading

Advanced Usage
Bool


Int & Float


String


Vec4 (color)


Function


Extra

Last updated