Hey there. I'm having a weird issue where players can't spawn vehicles after they purchased them. In RCON it's throwing the following error:
When I delete the data file it seemed to fix it for a little bit. Players say that /buy says they already own a vehicle and when they type /spawn it doesn't do anything in chat.
(15:31:52) | Failed to call hook 'CmdSpawnVehicle' on plugin 'VehicleLicence v1.7.32' (ArgumentNullException: Value cannot be null.
Parameter name: key)
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Plugins.VehicleLicence.GetBaseVehicleSettings (System.String vehicleType) [0x00000] in <c7ca953cfc4c429ba80ded85a0ae7b79>:0
at Oxide.Plugins.VehicleLicence.CanSpawn (BasePlayer player, Oxide.Plugins.VehicleLicence+Vehicle vehicle, System.Boolean bypassCooldown, System.String command, System.String& reason, UnityEngine.Vector3& position, UnityEngine.Quaternion& rotation) [0x00007] in <c7ca953cfc4c429ba80ded85a0ae7b79>:0
at Oxide.Plugins.VehicleLicence.SpawnVehicle (BasePlayer player, System.String vehicleType, System.Boolean bypassCooldown, System.String command) [0x000c7] in <c7ca953cfc4c429ba80ded85a0ae7b79>:0
at Oxide.Plugins.VehicleLicence.CmdSpawnVehicle (BasePlayer player, System.String command, System.String[] args) [0x001da] in <c7ca953cfc4c429ba80ded85a0ae7b79>:0
at Oxide.Plugins.VehicleLicence.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fff] in <c7ca953cfc4c429ba80ded85a0ae7b79>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0