diff --git a/plugins/doors/entities/weapons/nut_keys.lua b/plugins/doors/entities/weapons/nut_keys.lua index 0062627b..c903a342 100644 --- a/plugins/doors/entities/weapons/nut_keys.lua +++ b/plugins/doors/entities/weapons/nut_keys.lua @@ -162,13 +162,13 @@ function SWEP:toggleLock(door, state) if (state) then door:Fire("lock") if (door.IsSimfphyscar) then - door.IsLocked = true + door:Lock() end self.Owner:EmitSound("doors/door_latch3.wav") else door:Fire("unlock") if (door.IsSimfphyscar) then - door.IsLocked = nil + door:UnLock() end self.Owner:EmitSound("doors/door_latch1.wav") end