| View previous topic :: View next topic |
| Author |
Message |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Wed Feb 10, 2016 10:01 pm Post subject: [Help] Form button in lua? |
|
|
Can someone show me how to, do these things.
#make float input for user,
#Make a button print("1")
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Feb 10, 2016 10:10 pm Post subject: |
|
|
| Code: | writeFloat("address", 1.0)
showMessage("1") |
|
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Wed Feb 10, 2016 10:23 pm Post subject: |
|
|
| Zanzer wrote: | | Code: | writeFloat("address", 1.0)
showMessage("1") |
|
Sorry, maybe I didn't say it clear enough, I want to make a trainer where the user that doesn't have access too the source, where he has a text input box where he could input a float, and a BUTTON where if he presses it, it'll print 1 too the console or whatever you would like to call it.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4724
|
Posted: Wed Feb 10, 2016 11:08 pm Post subject: |
|
|
Topic covering custom trainers here. Refer to main.lua for more information on the different classes of the GUI elements.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Thu Feb 11, 2016 5:10 am Post subject: |
|
|
| ParkourPenguin wrote: | | Topic covering custom trainers [urhere[/url]. Refer to main.lua for more information on the different classes of the GUI elements. |
ty
|
|
| Back to top |
|
 |
Ghosting Advanced Cheater
Reputation: 0
Joined: 05 Feb 2016 Posts: 54 Location: 127.0.0.1
|
Posted: Thu Feb 11, 2016 8:43 pm Post subject: |
|
|
[quote="ParkourPenguin"]Topic covering custom trainers
Mhm, I gotten 'decent' at making trainers, but how do I get the users input example
User_input = input("Enter a number")
User_input1 = input("Enter another number")
print(User_input)
print(User_input1)
but make these text boxes..
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4724
|
Posted: Fri Feb 12, 2016 12:45 am Post subject: |
|
|
Look into the "Edit" class.
You could also use inputQuery(...) if you want.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
|