yup..yours are working.
but i will do like this :
local lang = {' English',' Español'}
local selectHack = {"ONLY SELECT ONE HACK", "ELIGE SOLO UN TRUCO"}
local hack = {{'Position', 'Teleport'}, {'Posición', 'Teletransportarse'}}
local teleporthack = {{'Map 1', 'Map 2'}, {'Mapa 1', 'Mapa 2'}}
local toast = {{'Position Hack chosen!', 'Teleport Hack chosen!'},{'¡Posición elegida!', '¡Teletransportado!'}}
function SelectLanguage()
local menu = gg.choice(lang, nil,'CHOOSE LANGUAGE / ELIGE EL IDIOMA')
if menu == nil then os.exit() else
langC = menu
Main()
end
end
function Main()
local menu = gg.choice(hack[langC], nil, selectHack[langC])
if menu == nil then return end
gg.toast(toast[langC][menu])
if menu == 1 then
-- Position Hack
elseif menu == 2 then
TeleportHack()
end
end
function TeleportHack()
local hackName = hack[langC][2]
local menuTitle = hackName.." - "..selectHack[langC]
local menu = gg.choice(teleporthack[langC], nil, menuTitle)
if menu == nil then return end
if menu == 1 then
-- Map 1
elseif menu == 2 then
-- Map 2
end
end
gg.setVisible(false)
SelectLanguage()
while true do
if gg.isVisible() then
gg.setVisible(false)
Main()
end
gg.sleep(100)
end