Hi! There are several mods that add grids to vehicles. If you've placed equipment into these grids and you summon the car, the equipment won't be copied and gets removed. Could you fix that, please?
I think it might be enough to add this code to control.lua:
function copy_car(index,car)
<snip>
-- GET THIS CAR GRID
local copy_this_grid = car.grid
if copy_this_grid then
local gridw = copy_this_grid.width
local gridh = copy_this_grid.height
for x=0, gridw do
for y=0, gridh do
local item = copy_this_grid.get({x,y})
if item then
global.cars[index].grid.put{name=item.name, position={x,y}}
end
end
end
end
end