Joined: 17 May 2016 Posts: 95 Location: orderandhacks
Posted: Mon Jun 27, 2016 5:00 am Post subject: [Help] Assembly script Enable/Disable LUA
I finally figured out assembly and I wanna make a trainer but....I want my trainer to have a button which will enable on first click and disable on second click
I've looked everywhere
(PS): I'm looking for a quick example I don't wanna take to much of anybody's time
function onButtonClick(sender)
local tag = sender.Tag;
if (tag == 0) then
sender.Tag = 1;
autoAssemble([[//enable script]])
else
sender.Tag = 0
autoAssemble([[//disable script]])
end
end
_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy!
Joined: 17 May 2016 Posts: 95 Location: orderandhacks
Posted: Mon Jun 27, 2016 12:35 pm Post subject:
DaSpamer wrote:
Code:
function onButtonClick(sender)
local tag = sender.Tag;
if (tag == 0) then
sender.Tag = 1;
autoAssemble([[//enable script]])
else
sender.Tag = 0
autoAssemble([[//disable script]])
end
end
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