local gg = gg
function main()
local menu = gg.choice({
"Veneno",
"Porsche",
"Chevrolet",
"Dodge",
"Exit"},nil,"car menu")
if menu == nil then
elseif
menu == 1 then Veneno()
elseif
menu == 2 then Porsche()
elseif
menu == 3 then Chevrolet()
elseif
menu == 4 then Dodge()
elseif
menu == 5 then os.exit()
end
end
function Veneno()
gg.searchNumber("2.25", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(500, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0.25", gg.TYPE_FLOAT)
gg.clearResults()
end
function Porsche()
gg.searchNumber("2.56", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(500, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0.25", gg.TYPE_FLOAT)
gg.clearResults()
end
function Chevrolet()
--code here
end
function Dodge()
--code here
end
while true do
if gg.isVisible() then
gg.setVisible(false)
main()
end
end
my mistake...there are some errors in the example script given by @Crystal_Mods100x that i misslook.
try this one.