Lua error

Hey guy I’m running DarkRP ver. 2.5 on my server, every time I use this (Lockpick. Link: I get a Nil vaulue which is ‘IsDoor’. Here is the actuall error:

[ERROR] gamemodes/darkrp/entities/weapons/lockpick/shared.lua:78: attempt to call method ‘IsDoor’ (a nil value)

  1. PrimaryAttack - gamemodes/darkrp/entities/weapons/lockpick/shared.lua:78
  2. unknown - gamemodes/darkrp/entities/weapons/lockpick/shared.lua:183

Does anyone know what I can change that to so it works? Thanks!

A lot of stuff changed with the newest dark rp update, particularly some functions changed from ThisCase to thisCase. Try changing IsDoor to isDoor. Just a guess.

IsDoor is now isDoor in 2.5.

Yeah, this was it. Thanks! Now they work! :smiley: