dragonofdark Posted February 12, 2011 Share Posted February 12, 2011 Hello, I have a script to switch vehicles indicators on/off. But to in this script, I must do /indicator_left or /indicator_right to switch them. It's boring to do every time the command to switch them so I would like to make some binds to switch them. So the old commands are addCommandHandler('indicator_left', function () switchIndicatorState('left') end, false) addCommandHandler('indicator_right', function () switchIndicatorState('right') end, false) And the new commands are bindKey ( player, ",", "down", function () switchIndicatorState('left') end, false ) bindKey ( player, ".", "down", function () switchIndicatorState('right') end, false ) But nothing work Could you help me on this ? PS: The "," is coma and the "." is dot. Link to comment
12p Posted February 12, 2011 Share Posted February 12, 2011 Where do you get "player" element from? Link to comment
dragonofdark Posted February 12, 2011 Author Share Posted February 12, 2011 Oh damn.. That was that the error. I don't must put the "player" element Link to comment
12p Posted February 12, 2011 Share Posted February 12, 2011 lol, next time tell which kind of script are you talking about, Client or Server Side. It's simply fundamental. 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