SetOwner doesn't affect storage modules?Not An Issue

Our PVE servers have been using this plugin and they love it, but I just realized that the SetOwner function doesn't affect any modules other than being unable to mount the vehicle. Anyone can walk up and take parts out of engines or storage modules. Can you make an option to make them inaccessible if SetOwner is true?

We do use XTransportPrivat as well, but it is not compatible with this plugin. Thanks!

The SetOwner option only sets the owner of the chassis (a.k.a. the car) since the chassis is the only object that this plugin is actually responsible for creating. This plugin is probably not a good place to add logic around looting or PvE.

Modules placed on cars don't have owners in vanilla Rust. While a plugin could set an owner, this plugin isn't the right place for that capability.

PvE servers typically use a plugin such as Prevent Looting to prevent players from accessing storage containers owned by other players. Such plugins work by checking the OwnerID of the storage entity. For car storage modules, the module entity itself would be checked, but it has no owner, so looting is allowed.

The preferred solution would be to update Prevent Looting (or whichever similar plugin you are using) to check the OwnerID of the car/chassis rather than the OwnerID of the module. I can contribute that change to Prevent Looting.

Locked automatically