Jump to content

how can i added a nother btn to players with bindKeys voiceptt ?


xMoDy

Recommended Posts

  • Scripting Moderators
3 minutes ago, xMoDy said:

I can talk from the z button but i want to add another so i have two buttons and i can talk from both

like this : https://prnt.sc/vvwn0a

Hi,

The easiest way to accomplish this is by double clicking the empty space in the 'Alt. key' column.

abcd.jpg

You will then be prompted to press the key you wish to use.

Link to comment

Yes, but how can I make it automatic from inside the server?

1 minute ago, Vinyard said:

Hi,

The easiest way to accomplish this is by double clicking the empty space in the 'Alt. key' column.

abcd.jpg

You will then be prompted to press the key you wish to use.

Yes, but how can I make it automatic from inside the server?

i went to make is

like t.h :

bindKey (source , "r" , "down" , "voiceptt")
 
But it does not work
Link to comment

It does not work this way, you don't have a permission to change player MTA settings. 

You can use bindKey to call a function.

 

 

function callingFunction ()
 -- doing something
end

bindKey( "F1", "down", callingFunction )

 

Edited by Erlkonig
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...