CITMartin Posted August 10, 2017 Share Posted August 10, 2017 I need a function to input client commands (In string) in console (f8) from the script in client side? Link to comment
NeXuS™ Posted August 10, 2017 Share Posted August 10, 2017 Do you mean, you want to write into the player's console on client-side? Link to comment
CITMartin Posted August 10, 2017 Author Share Posted August 10, 2017 1 minute ago, NeXuS™ said: Do you mean, you want to write into the player's console on client-side? Example, i have a gui panel, i write the information, as creator of bind using the key and string. Them, i press a button in my panel and i want input this in console (f8). Only i see the function outputConsole, but i need inputConsole. I want that my script in client side can input text(string) in console. Link to comment
NeXuS™ Posted August 10, 2017 Share Posted August 10, 2017 You'll have to create a command to create an input from the console. Link to comment
CITMartin Posted August 10, 2017 Author Share Posted August 10, 2017 3 minutes ago, NeXuS™ said: You'll have to create a command to create an input from the console. I want use https://wiki.multitheftauto.com/wiki/Server_Commands and https://wiki.multitheftauto.com/wiki/Client_Commands using my script Link to comment
NeXuS™ Posted August 10, 2017 Share Posted August 10, 2017 I dont think you can execute MTA's hardcoded commands. Link to comment
Addlibs Posted August 10, 2017 Share Posted August 10, 2017 There's executeCommandHandler but it does not work with MTA hardcoded commands (such as /quit) Link to comment
_DrXenon Posted August 10, 2017 Share Posted August 10, 2017 Why do you need to input in the console? Maybe we can figure out another way to do this thing instead of inputting it to console. Link to comment
CITMartin Posted August 10, 2017 Author Share Posted August 10, 2017 (edited) This commands can be used by outputChatBox. I want use this same commands with others scripts and other situation. Edited August 10, 2017 by CITMartin add somethings 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