SubmitFrame
Publish the current build buffer as the active frame to render on the Overlay.
Last updated
Publish the current build buffer as the active frame to render on the Overlay.
Last updated
-- One-shot overlay: persists until another Submit
Susano.BeginFrame()
Susano.DrawLine(100,100, 300,200, 1,0,0,1, 2)
Susano.DrawText(110,90, "Overlay", 18, 1,1,1,1)
Susano.SubmitFrame()-- Per-frame update
Citizen.CreateThread(function()
while true do
local t = GetGameTimer() / 1000.0
Susano.BeginFrame()
Susano.DrawText(20, 20, ("t=%.2f"):format(t), 18, 1,1,1,1)
Susano.SubmitFrame()
Citizen.Wait(0)
end
end)