I do not know what is triggering this errorFixed

no players have reported any bugs but I did see this in the console.

 

(09:25:43) | Failed to call hook 'OnTurretTarget' on plugin 'VehicleDeployedLocks v1.7.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Libraries.Permission.UserHasPermission (System.String playerId, System.String permission) [0x0000a] in <bae5f1223fce49c493b01571c99dce02>:0 
  at Oxide.Plugins.VehicleDeployedLocks.PlayerHasMasterKeyForLock (BasePlayer player, BaseLock baseLock) [0x00000] in <72de29570c0b47fdb75bf4121f4bb415>:0 
  at Oxide.Plugins.VehicleDeployedLocks.CanPlayerBypassLock (BasePlayer player, BaseLock baseLock, System.Boolean provideFeedback) [0x00039] in <72de29570c0b47fdb75bf4121f4bb415>:0 
  at Oxide.Plugins.VehicleDeployedLocks.OnTurretTarget (AutoTurret autoTurret, BasePlayer player) [0x00067] in <72de29570c0b47fdb75bf4121f4bb415>:0 
  at Oxide.Plugins.VehicleDeployedLocks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00513] in <72de29570c0b47fdb75bf4121f4bb415>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0

According to the stacktrace you provided, this is related to the feature where players authorized to the vehicle code lock won't be targeted by auto turrets on the vehicle. Since the player is not authorized, the plugin is checking if they have the "master key" permission, which calls Oxide. Oxide is throwing the error. It looks like this could only happen if the player object has a null UserIDString. I'm not sure when that would happen, but I'm guessing it's for some sort of NPCs.

This probably won't cause any impact other than annoying errrors. I will fix it in the next update.

Locked automatically