diff --git a/automobiles_lib/entities.lua b/automobiles_lib/entities.lua index 0990ccf..53050fd 100644 --- a/automobiles_lib/entities.lua +++ b/automobiles_lib/entities.lua @@ -220,6 +220,7 @@ function automobiles_lib.on_activate(self, staticdata, dtime_s) automobiles_lib.setText(self, self._vehicle_name) if data.remove then + automobiles_lib.destroy_inventory(self) self.object:remove() return end