Garry's Mod

Garry's Mod

Handcuffs SWEP
Complexy 22 Jan, 2024 @ 5:23pm
Null Cuffer Softlock Bug
Recently I've ran into an issue with the handcuffs where if the cuffer (for whatever reason) doesn't exist, say they disconnect, then the cuffed individual cannot be uncuffed by any other player.

Here's the error and stack trace:
[Handcuffs SWEP] lua/autorun/handcuffs.lua:422: Tried to use a NULL entity! 1. SetRunSpeed - [C]:-1 2. UnHandCuff - lua/autorun/handcuffs.lua:422 3. unknown - lua/weapons/swep_handcuffs.lua:180

I've tried using the key as well, which outputs a similar error:
[Handcuffs SWEP] lua/autorun/handcuffs.lua:422: Tried to use a NULL entity! 1. SetRunSpeed - [C]:-1 2. UnHandCuff - lua/autorun/handcuffs.lua:422 3. unknown - lua/entities/ent_handcuffs_key.lua:60

Our only working solution is to just have the cuffed individual rejoin the server.
Last edited by Complexy; 22 Jan, 2024 @ 5:26pm
< >
Showing 1-1 of 1 comments
Uzi  [developer] 23 Jan, 2024 @ 8:55am 
The error should be resolved.
< >
Showing 1-1 of 1 comments
Per page: 1530 50