How to create item function?


Hi guys, I wonder how I can create an item that performs a function.
Example: I would like to be able to buy handcuffs at the superette I would like that when I face to use this handcuffs the person closest.
Do you have an idea ?
Thank you


UP, Can you help me pls


UP, help me. Thanks men


Did u figure it out?