This is my code
function drepair()
for i, pu in pairs (getElementsByType("racepickup")) do
local puType = getElementData(pu, "type")
if (puType == "repair") then
destroyElement ( pu )
end
end
end
addCommandHandler("del",drepair)
I want to remove repairs in map with del command but it doesnt work.