function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('delveh', function(arg)
if tonumber(arg) ~= nil then
result, vehHandle = sampGetCarHandleBySampVehicleId(tonumber(arg))
if result then
deleteCar(vehHandle)
end
end
end)
while true do
wait(0)
end
end