Example
Example Lua
function eventTick()
if isOnGround() then
jump()
end
if tickInfo(2) then
strafe(0.22)
end
end
function onLoad()
addMessage("Welcome to Jump.lua")
addMessage("Creator - badluck1337")
end
function onUnLoad()
addMessage("Bye....")
end
function eventRender()
local color = {
r = 20,
g = 20,
b = 20,
a = 100
}
local colorText = {
r = 255,
g = 255,
b = 255,
a = 255
}
local colorLine = {
r = 255,
g = 255,
b = 255,
a = 100
}
renderRoundedRect(10, 10, getStringWidth("Jump.Lua","20") + 4 + getStringWidth(getFps(),"20") + getStringWidth(
"fps","20") + 4, 20, 3, color)
renderGradientText("Jump.Lua", "20", 12, 13)
renderRoundedRect(12 + getStringWidth("Jump.Lua","20"), 10, 1 , 20, 3, colorLine)
renderText(getFps(), "20", 14 + getStringWidth("Jump.Lua","20"), 13,colorText)
renderGradientText("fps", "20", 14 + getStringWidth("Jump.Lua","20") + getStringWidth(getFps(),"20") + 1, 13)
end
Last updated