Stormworks - Lua GPS Display Tutorial

Опубликовано: 05 Август 2026
на канале: TerrRawrSaur
9,298
249

This guide will show you how to create a display that will output your current GPS coordinates using LUA.

This is the LUA code used in the tutorial.

function onTick()
gpsx = input.getNumber(1)
gpsy = input.getNumber(2)
end


function onDraw()
w = screen.getWidth()
h = screen.getHeight()
screen.setColor(0, 255, 0)
screen.drawTextBox(2,2,w,h,string.format("X:%.f\nY:%.f", gpsx, gpsy))
end