Hello, everyone.
I'm working on an idea my friend and I had a while back where you would be able to click on a player with your remover toolgun out and they'd be kicked with a predefined message. That's essentially how it'd work, although of course checks on what the entity you're clicking on would be in place to avoid trying to kick props, the world itself, etc. I'd also like to make a ulx permission for it so only certain ranks would be allowed to use the feature. With that being said, here's pretty much what's going through my mind here: Check to see if the remover is equipped, then check to see if the entity that was clicked on is a player, then run the ulx command "ulx kick <player> <previously specified reason>" For the most part, it sounds like it'd be pretty solid and simple to do, although I came across one major issue when working on this; you can't target players with your toolgun.
<tl;dr>
Is there any way I can make players targetable by toolguns, but only if your group has a certain permission?
Thank you in advance!