-
Posts
1,840 -
Joined
-
Last visited
-
Days Won
122
Community Answers
-
MonkeySAN's post in help me make menu and correct me was marked as the answer
local lang = {' English',' Español'} local selectHack = {"ONLY SELECT ONE HACK", "ELIGE SOLO UN TRUCO"} local hack = {{'Position', 'Teleport'}, {'Posición', 'Teletransportarse'}} 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 -- Teleport Hack end end while true do if gg.isVisible() then gg.setVisible(false) SelectLanguage() end gg.sleep(100) end -
MonkeySAN's post in several named value in saved list, load them to result, edit their value by the name given, clear result and send them back to saved list was marked as the answer
assuming you had already named all the items in the saved list.
maybe you can try this :
function setPos(x, y, z) local saved = gg.getListItems() local edited = {} for i, v in ipairs(saved) do if v.name == "posX" then v.value = x v.freeze = true table.insert(edited, v) elseif v.name == "posY" then v.value = y v.freeze = true table.insert(edited, v) elseif v.name == "posZ" then v.value = z v.freeze = true table.insert(edited, v) end end if #edited > 0 then gg.setValues(edited) gg.addListItems(edited) gg.toast("Position updated and frozen.") else gg.toast("No matching posX/posY/posZ found.") end end while true do if gg.isVisible() then gg.setVisible(false) local menu = gg.choice({ "Value 1 [x:100, y:50, z:1]", "Value 2 [x:200, y:150, z:1]", "Value 3 [x:300, y:200, z:1]", "EXIT"}, nil,"Select value") if menu == nil then elseif menu == 1 then setPos(100, 50, 1) elseif menu == 2 then setPos(200, 150, 1) elseif menu == 3 then setPos(300, 200, 1) elseif menu == 4 then gg.toast("Exiting..") os.exit() end end gg.sleep(100) end -
MonkeySAN's post in search value, save to list with name, load spesific name from saved list to searchresult and edit the value was marked as the answer
gg.searchNumber('1008981770', gg.TYPE_DWORD) gg.refineNumber('1008981770') local searchResults = gg.getResults(5) searchResults[3].name = 'Target' gg.addListItems(searchResults) gg.clearResults() local Target = gg.getListItems() for i, v in ipairs(Target) do if v.name == 'Target' and v.flags == gg.TYPE_DWORD then v.value = 0 v.freeze = true v.freezeType = gg.FREEZE_NORMAL end end gg.setValues(Target) gg.addListItems(Target) gg.clearResults()
-
MonkeySAN's post in How to implement Nearby Search in LUA Script for address that keeps changing was marked as the answer
gg.searchNumber("0.10000000149;2.5;6.0::9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("6", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) -- Get up to 10 results just in case local results = gg.getResults(10) local offset = 0x500 local allResults = {} -- Loop through each address from results for _, v in ipairs(results) do local baseAddress = v.address gg.clearResults() gg.searchNumber("-1", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, baseAddress, baseAddress + offset, 0) -- Get all found results for this address range local found = gg.getResults(10) for _, addr in ipairs(found) do table.insert(allResults, addr) -- Collect each valid result end end -- Load all results found for target value if #allResults > 0 then gg.loadResults(allResults) end
-
MonkeySAN's post in Set the value too high accidentally now the value is shown as NaN was marked as the answer
Great.
now refine to value 13 and put all of it into the savelist.
in the savelist, select all then tap that button(red arrow) :
which bring this menu then select the option(in red box) :
fill it as shown below then OK :
-
MonkeySAN's post in gg.copyText() not copying spaces ..? was marked as the answer
try this..
... gg.copyText(printRes,false)
-
MonkeySAN's post in How to check game guardian version in script? was marked as the answer
you can try this
if gg.VERSION < "101.1" then gg.alert("Please use the latest version of GameGuardian.") os.exit() end or this.
if gg.VERSION == "101.1" then else gg.alert('Please use GameGuardian version 101.1') os.exit() end