Jump to content

binding arguments?


Recommended Posts

Posted

is it possible to bind arguments to a key?

the syntax for the command i want to bind is ''/spawnbot [skinid] [weaponid]''.

i can bind a button to the command ''spawnbot'', but im just wondering how i would be able to add the skin and weapon arguments.

can anyone help?y

Posted
-- server-side
bindKey( player, "YOURKEY", "down", "spawnbot", "0 32" ); -- /spawnbot 0 32
or
-- client-side
bindKey( "YOURKEY", "down", "spawnbot", "0 32" ); -- /spawnbot 0 32

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...