Players can't claim (/vclaim) random vehicles

I'm pretty sure that the destroyed/decayed vehicles are still registered to the player.
Or it's possible they still have the vehicle somewhere but forgot about them.

Would it be possible to add a command or series of commands like
/vunclaim all
/unclaim mini
/vunclaim boat
etc.
/vunclaim all will clear all owership and ownership data as well as remove the lock from all vehicles if there are any.
and the name command will do the same for that type of vehicle
 

Orange

Administrator
Its strange, beacuse it checks vehicles for existing on registering. I will change logic of its working in near time
 
Code:
 Failed to call hook 'cmdUnLockVehicleChat' on plugin 'VehicleLocks v1.0.2' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
  at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <437ba245d8404784b9fbab9b439ac908>:0
  at Oxide.Plugins.VehicleLocks.RemoveLock (BaseEntity entity) [0x00038] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.VehicleLocks.cmdUnLockVehicleChat (BasePlayer player, System.String command, System.String[] args) [0x0004b] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.VehicleLocks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004e9] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
I think this may have something to do with the plugin issue.
 

Orange

Administrator
Code:
 Failed to call hook 'cmdUnLockVehicleChat' on plugin 'VehicleLocks v1.0.2' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
  at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <437ba245d8404784b9fbab9b439ac908>:0
  at Oxide.Plugins.VehicleLocks.RemoveLock (BaseEntity entity) [0x00038] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.VehicleLocks.cmdUnLockVehicleChat (BasePlayer player, System.String command, System.String[] args) [0x0004b] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.VehicleLocks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004e9] in <55c30a224bc44b31bc775be1f680b35e>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
I think this may have something to do with the plugin issue.
Plugin logic will be changed in near time, thanks for report anyways
 
Players are still having issues with claiming.
Just had this come up in chat
" Says "claimed to many car" but havnt claimed 1"
 

Orange

Administrator
Players are still having issues with claiming.
Just had this come up in chat
" Says "claimed to many car" but havnt claimed 1"
As claimed it means vehicles where ownerID is same as player ID. Maybe you have other plugins that can do same thing? Like VehicleLicence, etc
 
So I just realized what the issue is. It's not that they already claimed a car. I have it blocked. The car plugin I use gives them a key so /vclaim /vlock is pointless on the sedan. I just forgot about it.

So it's giving an incorrect chat response. It should say that the vehicle is blocked or something along those lines.

This has happened with the heli before though. So is there a way that I can check the other plugins? I don't use VehicleLicense. I hate it. Too many steps.
 

Orange

Administrator
So I just realized what the issue is. It's not that they already claimed a car. I have it blocked. The car plugin I use gives them a key so /vclaim /vlock is pointless on the sedan. I just forgot about it.

So it's giving an incorrect chat response. It should say that the vehicle is blocked or something along those lines.

This has happened with the heli before though. So is there a way that I can check the other plugins? I don't use VehicleLicense. I hate it. Too many steps.
Well its one of examples. If you will drop me all your plugins in PM (list from o.plugins) i can help you there
 
Top