guys please help me with my lua script, why is this not working. i made for subway surfers game, this is the script code
function HackFunction(ToF)
if Hack == "A" then -- Free Shopping
if ToF == true then
HackersHouse.hijackParameters({
{ ['libName'] = "libil2cpp",
['offset'] = 0x1CE468C,
['parameters'] ={ { "bool", false}},
['libIndex'] = 'auto'
}
})
Toast("Free Shopping Activated")
else
HackersHouse.hijackParametersOff({
{ ['libName'] = "libil2cpp",
['offset'] = 0x1CE468C,
}
})
Toast("Free Shopping De-Activated")
end
elseif Hack == "B" then -- Unlimited Jump
if ToF == true then
Toast("Unlimited Jump Activated")
else
Toast("Unlimited Jump De-Activated")
end
elseif Hack == "C" then -- God Mode
if ToF == true then
Toast("God Mode Activated")
else
Toast("God Mode De-Activated")
end
else
Toast("Error You Broke It")
end
end
BTW I use patching lib from HackerHouse