mirror of
https://github.com/APercy/automobiles_pck
synced 2025-09-02 18:16:24 +02:00
added inventory destruction when auto removing
This commit is contained in:
parent
6747f57cc9
commit
910bb3fbca
@ -220,6 +220,7 @@ function automobiles_lib.on_activate(self, staticdata, dtime_s)
|
|||||||
|
|
||||||
automobiles_lib.setText(self, self._vehicle_name)
|
automobiles_lib.setText(self, self._vehicle_name)
|
||||||
if data.remove then
|
if data.remove then
|
||||||
|
automobiles_lib.destroy_inventory(self)
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user