Wild thought | A key binding filterscript
#1

As we all know, typing commands can be time consuming. Instead of typing /engine to start and stop the engine of a vehicle or using /lights to turn the lights on and off over and over, you can simply hit a key and it'll do the job for you. But.. the thing is.. where is this filterscript located?

I've checked around but found nothing beneficial. I've already looked at this post: https://sampforum.blast.hk/showthread.php?tid=331506 but it's not what I'm looking for. I've even checked out the keys and stuff at https://sampwiki.blast.hk/wiki/GetPlayerKeys but the only thing that I need is a ready-made filterscript which I just need to insert the keys and specific commands.

In case a thread like this was made before, I apologize. Btw.. thanks in advance guys.
Reply
#2

OnPlayerKeyStateChange is what you're looking for.

See: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Also, wrong section. Use the Scripting Help section next time.
Reply
#3

Yeap, this is the bad boi I've been looking for. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)