Garry's Mod

Garry's Mod

Handcuffs SWEP 2.0
40 Comments
Lucy 13 Jul @ 2:01pm 
cool mod but can we get npc handcuffing too
Uzi  [author] 12 Apr @ 3:32pm 
Should also be fixed hopefully
джамбо харламик 12 Apr @ 12:16pm 
[Handcuffs SWEP 2.0] lua/weapons/swep_handcuffs.lua:46: Tried to use a NULL entity!
1. GetPos - [C]:-1
2. func - lua/weapons/swep_handcuffs.lua:46
3. unknown - lua/includes/extensions/net.lua:34
this error occurs even when working with players.
Uzi  [author] 7 Mar @ 1:09pm 
Should be "fixed" however this error really shouldn't be happening unless it can't give the weapon to the player for some reason.
[Handcuffs SWEP 2.0] lua/autorun/handcuffs.lua:24: attempt to index local 'wep' (a nil value)
1. CuffPosition - lua/autorun/handcuffs.lua:24
2. HandCuff - lua/autorun/handcuffs.lua:424
3. unknown - lua/weapons/swep_handcuffs.lua:151

Timer Failed! [Simple][@lua/weapons/swep_handcuffs.lua (line 144)]

Please help me. This addon is just lovely, exactly what I was looking for.
Uzi  [author] 24 Feb @ 3:40am 
No
Salfither132 24 Feb @ 3:38am 
Is it works on NPC?
Uzi  [author] 18 Feb @ 2:53am 
@Borziy I added it, type "HS" into console for the list of convars.
Borziy 18 Feb @ 2:25am 
Can you add an option in menu to remove speed debuff that gets applied to cuffed players?
Uzi  [author] 17 Feb @ 7:01am 
@Borziy
The first error appeared because the player didn't have a weapon when it was setting the weapon holdtype, that's also why they didn't appear like in the screenshot.
The second error appeared because the player already had the weapon when it was trying to restore it so the reference didn't exist.

Both errors should be fixed now hopefully.
Borziy 17 Feb @ 6:27am 
On a server running this addon, any handcuffed player model appears as holding an invisible gun/rifle instead of how shown in the mod's screenshots. Also a lua error message always pops up when anyone get handcuffed, here's how it looks like (copied it to pastebin): https://pastebin.com/iHeQ965A
Gordon Nick 8 Jan @ 1:03pm 
All good man, only do it if you enjoy the process, but I will like to thank you for making this mod, it has been helpful. Take care
Uzi  [author] 8 Jan @ 3:58am 
Sounds interesting, if I'm going to add it though it could take a while because it's like a 2 year old addon at this point so I don't even recognize the code anymore. I won't make any promises.
Gordon Nick 7 Jan @ 5:26pm 
I wanna suggest a new feature to where you can cuff the players legs. Making them unable to move.
a 1 Jan @ 4:09pm 
if you want to handcuff npcs use the bot command in a multiplayer server it will make a handucffable npc since the game treats it as a player
OVERLORD_759 31 Dec, 2024 @ 6:17pm 
very good!
Uzi  [author] 29 Dec, 2024 @ 9:52am 
It should work now, there were some mistakes that made it not work properly.
Uzi  [author] 29 Dec, 2024 @ 3:57am 
I can try and take a look someday.
Pdptank 28 Dec, 2024 @ 12:35pm 
Is is possible that you could make this SVmod compatable? Incase you don't know svmod has almost the same features as vcmod and is on the steam workshop including multiple seats.
joy.h.kelley 26 Dec, 2024 @ 9:16pm 
Does this work on npcs or lambda players. If not can you make it work
Ayeefan 23 Dec, 2024 @ 5:13am 
can you please make this work on npcs
That viking who procrastinates 22 Nov, 2024 @ 9:19am 
It would be funny if you could use this on npcs
silverservice 3 Nov, 2024 @ 3:37am 
Thank you a lot!
Uzi  [author] 3 Nov, 2024 @ 3:36am 
Yes there is, the host has to change the 'HS_EscapeAllowed' convar.
silverservice 3 Nov, 2024 @ 12:34am 
I have a question, when I use this on my friends when they respawn they are still cuffed and tied to the floor and such

Is there a way to stop that so if they die they are fine on respawn?

Thank you
LosCartuchos5566 2 Nov, 2024 @ 4:48pm 
@EltonHowe

its an spawnable thing that simuates real players.

i recomend zetas too, they have a cool team system
ItzPoorCloudy 2 Nov, 2024 @ 10:17am 
@Chara No problem here thanks for trying anyway. It's probably me :steammocking::steambored:
Uzi  [author] 1 Nov, 2024 @ 3:59pm 
Sorry I couldn't help, hope you have fun regardless.
ItzPoorCloudy 1 Nov, 2024 @ 11:38am 
@Chara I've tried and instead of receiving errors I instead get nothing when trying to pull a player out of the vehicle.
So yeah you fixed the errors but I still can't do anything. :steamsad:
But It might be me I think since I have so much mods :steamsad: Cool Mod Tho :steamhappy:
AverageCat 29 Oct, 2024 @ 10:36am 
never understood what a lambda player was
LosCartuchos5566 28 Oct, 2024 @ 8:45am 
ok
Uzi  [author] 27 Oct, 2024 @ 8:47pm 
You can't use it on npcs, only players. If lambda players don't work then they don't classify as players.
LosCartuchos5566 27 Oct, 2024 @ 6:56pm 
how can i handcuffs things like npcs or lambda players
LosCartuchos5566 27 Oct, 2024 @ 6:56pm 
nvm figured it out
LosCartuchos5566 27 Oct, 2024 @ 6:50pm 
how do i uncuff myself?
Uzi  [author] 27 Oct, 2024 @ 4:27am 
I released an update, I didn't test it so if the errors still occur let me know.
Uzi  [author] 27 Oct, 2024 @ 4:15am 
@ItsPoorCloudy I will check it out
Delin 26 Oct, 2024 @ 7:03pm 
nice ai preview image chum:steambored:
ItzPoorCloudy 26 Oct, 2024 @ 5:41pm 
Got these errors while trying to get someone out of the car using vehicles.
[Handcuffs SWEP 2.0] lua/weapons/swep_handcuffs.lua:99: Tried to use a NULL entity!
1. __index - [C]:-1
2. unknown - lua/weapons/swep_handcuffs.lua:99

[Handcuffs SWEP 2.0] lua/weapons/swep_handcuffs.lua:85: Tried to use a NULL entity!
1. __index - [C]:-1
2. unknown - lua/weapons/swep_handcuffs.lua:85

[Handcuffs SWEP 2.0] lua/weapons/swep_handcuffs.lua:480: attempt to call method 'GetPassenger' (a nil value)
1. unknown - lua/weapons/swep_handcuffs.lua:480 this error gave the most popups


[Handcuffs SWEP 2.0] lua/weapons/swep_handcuffs.lua:202: attempt to call method 'HandCuffed' (a nil value)
1. unknown - lua/weapons/swep_handcuffs.lua:202

Is there a way you could fix these or no?:steamhappy:
SKIBIDI 24 Oct, 2024 @ 10:12am 
круто