Define the player in which owns the swep

So, I have the rape swep here and I was wondering, how would I make the character wanted whenever he/she rapes someone. I know I’d have to use this hook:


playerWanted(Player criminal, Player actor, string reason)

However, I don’t understand the “Player criminal” argument. What can I put there that targets the person who owns the swep?

Also, how would I be able to force the player to wait before raping (doing the primary attack) again?

If this is inside a SWEP: function, you can use self.Owner which would be the person with the weapon. To set a cooldown, you can use Weapon:SetNextPrimaryFire.