Jump to content
  • 0

[solved]Binding a command with parameters to a key as player


Mini-Me

Question

Posted (edited)

Short question:

Is there any way to bind a command with a parameter to a key from the ingame console or the chat? Similar to:

/bind c "spawncar 520" 

... which of course does not work, otherwise I wouldn't be asking ;). This only binds the command "spawncar" to the key.

I'm afraid though that the answer is going to be no :(.

Edited by Guest

5 answers to this question

Recommended Posts

  • 0
Posted

You can do like this: /bind X ss 46

That'll set your skin to 46 when you press X (in freeroam).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • 0
Posted

No, these commands:

bind 5 spawncar 520 
bind 5 down spawncar 520 
bind 5 down "spawncar 520" 

all output:

* Bound key '5' 'down' to command 'spawncar'

And:

bind 5 "down" "spawncar 520" 

Outputs:

* Bound key '5' 'down' to command '"down"'

EDIT: Uh, yeah. It works with the non-Num 5... but still the response of the console is misleading as far as I see it.

  • 0
Posted (edited)

It tells you that it bound the key, but it doesn't tell you the parameters.

Edited by Guest

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • 0
Posted

Yes, that's what I meant, sorry, I miss spell it :P.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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