Suong Nguyen How do I cheat? Reputation: 0
Joined: 31 Mar 2015 Posts: 2
|
Posted: Tue Mar 31, 2015 12:38 am Post subject: Need help with CECheckbox!!! |
|
|
Hi!! I am a newbie, and I have problem Checkbox code.
my address:"Top-Kart.dll"+009AF32C
offset:8
value must be 3 to activate, inactivate: value 0
Can you guys help me writing the code with CECheckbox?[/quote]
|
|
alanze Advanced Cheater Reputation: 3
Joined: 03 Oct 2012 Posts: 50
|
Posted: Mon Apr 06, 2015 9:18 am Post subject: |
|
|
First put this in Lua window:
Code: |
function topkartCB()
if (CETrainer.CECheckboxTK.State==cbChecked) then
writeBytes("Top-Kart.dll+009AF334", 3)
else
writeBytes("Top-Kart.dll+009AF334", 0)
end
end
|
Now go to Form Designer window and make sure the checkbox have this setting:
AllowGrayed: False
Checked: False
Name: CECheckboxTK
State: cbUnchecked
OnChange: topkartCB
CETrainer is the TrainerForm name, if you have another name change it in the lua script.
CECheckboxTK is the Checkbox name, if you have another name change it in the lua script.
Example: Someform.Somecheckbox.State==cbChecked
If your value is a 4 byte integer use this in the lua script:
writeBytes("Top-Kart.dll+009AF334", 3, 0, 0, 0)
writeBytes("Top-Kart.dll+009AF334", 0, 0, 0, 0)
|
|