HealthDown Posted September 7, 2011 Share Posted September 7, 2011 what is code what will execute console command when i click on button? Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 what you mean? explain more Link to comment
FWCentral Posted September 7, 2011 Share Posted September 7, 2011 you mean bindKey ? https://wiki.multitheftauto.com/wiki/BindKey Link to comment
HealthDown Posted September 7, 2011 Author Share Posted September 7, 2011 i have commande "weed plant 1" and i want to execute it by clicking button Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 lol I think this thing is impssible Link to comment
HealthDown Posted September 7, 2011 Author Share Posted September 7, 2011 when i press on gui button i execute console command line "weed plant 1" Link to comment
HealthDown Posted September 7, 2011 Author Share Posted September 7, 2011 https://community.multitheftauto.com/ind ... ls&id=2742 i want to make gui for that resource Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 ohh I understand now this isn't a requesting forums learn by yourself wiki.multitheftauto.com if u have any problems make a new topic with ur code Link to comment
HealthDown Posted September 7, 2011 Author Share Posted September 7, 2011 i cant find it on mta, but anyway i have GUI button and when i press it i want to execute /weed plant 1 command Link to comment
FWCentral Posted September 7, 2011 Share Posted September 7, 2011 ok i think this is what you want https://wiki.multitheftauto.com/wiki/TriggerEvent or triggerServerEvent if it is a server function. Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 well FWCentral helped you enough now... Link to comment
HealthDown Posted September 7, 2011 Author Share Posted September 7, 2011 i want to execute it on F8 console, not in server Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 lolol dude do it by yourself we aren't your slaves Link to comment
JR10 Posted September 7, 2011 Share Posted September 7, 2011 triggerEvent, triggerServerEvent, triggerClientEvent Is for triggering events, not functions, or commands. executeCommandHandler ( "weed" , player , "plant" , "1" ) Link to comment
qaisjp Posted September 8, 2011 Share Posted September 8, 2011 What is wrong with all of you? (not jr10 and who didn't say bad stuff) Can't you understand that he wants to do a command triggered by a button?! And he isn't asking for it ready made Samer, he is just asking for help on the below code. Indeed we are not slaves, but if you are not in this subforum to help, or ask for help. then i recommend you get out of this subforum IMHO. -.- executeCommandHandler("weed", "plant 1") Link to comment
JR10 Posted September 8, 2011 Share Posted September 8, 2011 If it's server: executeCommandHandler ( "weed" , player , "plant 1" ) Client: executeCommandHandler ( "weed", "plant 1" ) My bad btw, I thought you specify it with several arguments, not one argument. Link to comment
qaisjp Posted September 8, 2011 Share Posted September 8, 2011 Also, triggerServerEvent to do a function that does the executeCommandHandler if the weed cmd is s-side Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now