HealthDown Posted September 7, 2011 Posted September 7, 2011 what is code what will execute console command when i click on button?
FWCentral Posted September 7, 2011 Posted September 7, 2011 you mean bindKey ? https://wiki.multitheftauto.com/wiki/BindKey
HealthDown Posted September 7, 2011 Author Posted September 7, 2011 i have commande "weed plant 1" and i want to execute it by clicking button
HealthDown Posted September 7, 2011 Author Posted September 7, 2011 when i press on gui button i execute console command line "weed plant 1"
HealthDown Posted September 7, 2011 Author Posted September 7, 2011 https://community.multitheftauto.com/ind ... ls&id=2742 i want to make gui for that resource
Baseplate Posted September 7, 2011 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
HealthDown Posted September 7, 2011 Author 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
FWCentral Posted September 7, 2011 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.
HealthDown Posted September 7, 2011 Author Posted September 7, 2011 i want to execute it on F8 console, not in server
Baseplate Posted September 7, 2011 Posted September 7, 2011 lolol dude do it by yourself we aren't your slaves
JR10 Posted September 7, 2011 Posted September 7, 2011 triggerEvent, triggerServerEvent, triggerClientEvent Is for triggering events, not functions, or commands. executeCommandHandler ( "weed" , player , "plant" , "1" )
MTA Team qaisjp Posted September 8, 2011 MTA Team 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")
JR10 Posted September 8, 2011 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.
MTA Team qaisjp Posted September 8, 2011 MTA Team Posted September 8, 2011 Also, triggerServerEvent to do a function that does the executeCommandHandler if the weed cmd is s-side
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