function toggle(addressDescription)
local al = getAddressList()
local mr = al.getMemoryRecordByDescription(addressDescription)
mr.Active = not mr.Active
end
function toggle(addressDescription)
local al = getAddressList()
local mr = al.getMemoryRecordByDescription(addressDescription)
mr.Active = not mr.Active
end
toggle('Toggle Script')
Like this:
Code:
function freezeTimer()
if toggle then
writeBytes(0x123456,1)
end
if not toggle then
writeBytes(0x123456,0)
end
end
To call function twice and toggle cheat
Code:
freezeTimer() --Enabled
freezeTimer() --Disabled
EDIT:
Code:
function toggleDead(toggle)
if toggle then
toggle = true
writeBytes('PlayerPTR+74',1)
end
if not toggle then
toggle = false
writeBytes('PlayerPTR+74',0)
end
end
toggleDead(true) --Will toggle dead to 1
toggleDead(false) --Will toggle dead to 0
I don't think you explicity require a propietary function for this since you can just check if the memory record is active or not. Unless, you're trying to read a value of an address and base the activation on that addresses value; in which case you would do something like this:
Code:
local al = getAddressList()
local mr = al.getMemoryRecordByDescription('address description')
if mr ~= nil then
if mr.value == 'value' then
writeBytes(0x123456,1)
else
writeBytes(0x123456,0)
end
end
If you want to constantly check the value then you will have to do one of two things, use a timer or use the createThread function.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum