You use OnHammerHit hook for picking the vehicle up.
CheckPickup then compares OwnerID with userID, and shows a "Pickup Ownership" error if it doesn't match.
The problem with that is that we aren't filtering out items that aren't the vehicles in your list. As a result, every thing you hit with a hammer or salvage hammer causes the "Pickup Ownership" error to occur. This means that if you hit turrets, or walls, or a barrel, then it does CheckPickup.
Suggestions:
CheckPickup then compares OwnerID with userID, and shows a "Pickup Ownership" error if it doesn't match.
The problem with that is that we aren't filtering out items that aren't the vehicles in your list. As a result, every thing you hit with a hammer or salvage hammer causes the "Pickup Ownership" error to occur. This means that if you hit turrets, or walls, or a barrel, then it does CheckPickup.
Suggestions:
- Add a config so that,
- You can add option to disable OnHammerHit altogether. There are other plugins that use this.
- Maybe add option to offer other ways of picking up the vehicle, like a command.